Multiple Loop : Get posts as well as specific tags
-
Hi everyone,
I am a NOOB to WP but I am trying to design a loop that displays the content of the page and then along the bottom shows the 3 most recent posts tagged with a specific tag word. So far I have this loop but what happens is it shows the page content and then it displays about 152 copies of the same post with the tag wow. Any ideas of how I can integrate<?php query_posts('tag=wow'); ?>
into my loop so that it only shows the most current 3 and does not loop back around into itself?Here is my loop.
<div id="content" class="narrowcolumn" role="main"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <div class="entry"> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> </div> </div> <?php query_posts('tag=wow'); ?> <?php endwhile; endif; ?> </div>
any help is appreciated, I already went to this page but I don’t quite understand everything when it comes to multiple loops.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Multiple Loop : Get posts as well as specific tags’ is closed to new replies.