Can’t get tags to show up in WP_Query loop…
-
Hi,
I am trying to use tags in a custom query:
<?php $homeArticle = new WP_Query(); $homeArticle->query('showposts=10'); while ($homeArticle->have_posts()) : $homeArticle->the_post(); ?> <div class="postWrapper"> <span class="entryTitle"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <h4>by <?php the_author(); ?>, posted <?php the_time('F, j Y'); ?> at <?php the_time(); ?></h4> </span> <? the_content();?> <div class="post_meta"> <p>Posted in: <?php the_category(', '); ?></p> <?php the_tags('<ul><li>','</li><li>','</li></ul>'); ?> </div> </div> <?php endwhile; ?>
But for some reason they never show up… Putting them in a standard Loop seems to be fine though…
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can’t get tags to show up in WP_Query loop…’ is closed to new replies.