Tags Not Displaying
-
Oh boy, another help topic. Sheesh.
Anyway, I hope someone out there can help me. This has been bugging me for hours now. I have two loops on the index.php page going. One of them shows a featured post, the other one shows the other posts like normal. Thing is, on that one featured post loop, no tags are shown on the featured post. The code is right, just, the tags don’t show up. The date, author, categories, etc all show up just fine. It’s only the tags.
Here’s the code for the loop in question. Any help really appreciated.
<!--Featured Post--> <?php if (! is_paged()): $my_query = new WP_Query('category_name=Featured&showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <div class="post-container" id="post-<?php the_ID(); ?>"> <div class="post-left"> <div class="post-image"> <a href="<?php the_permalink() ?>"><?php image_attachment('image', 144, 144); ?></a> </div> <div class="post-meta"> <span class="bold"><?php the_time('F j, Y'); ?>.</span><br /> <span class="bold">Author:</span> <a href="<?php the_author_url(); ?>"><?php the_author();?></a>.<br /> <span class="bold">Category:</span> <?php the_category(', ') ?>.<br /> <span class="bold">Tags:</span> <?php the_tags(__(''), ', ', ''); ?>. <?php edit_post_link('<br /><span class="bold">Admin: </span>Edit Post.', ''); ?> </div> </div> <div class="post-right"> <div class="bar"> Featured Post </div> <div class="post-header"> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1> </div> <div class="post-content"> <?php the_excerpt(); ?> </div> <span class="go-left"> <a href="<?php the_permalink() ?>">Read More »</a> </span> <span class="go-right"> <?php comments_popup_link('0 Comments »', '1 Comment »', '% Comments »'); ?> </span> </div> </div> <?php endwhile; ?> <?php endif; ?> <!--End of Featured Post-->
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Tags Not Displaying’ is closed to new replies.