the_content and next_posts_link did not work with query_posts
-
Below is my query_post() for a custom query.
Why is the_content() displaying my full post instead of just the part above the “more” comment tag?
Why does next_posts_link() not paging through to the rest of the result set? It keeps just displaying the first page. Is it becasue “next_posts_link()” only works when there is /tag/ in the url?
<?php $myposts = query_posts('tag=dvds-science,dvds-nature&posts_per_page=15'); foreach($myposts as $post) : setup_postdata($post); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h1><?php the_title(); ?></h1> <div class="entry"> <?php the_content('Read more'); ?> </div> </div> <?php endforeach; ?> <br /><br /> <?php next_posts_link('Next Page »') ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘the_content and next_posts_link did not work with query_posts’ is closed to new replies.