I am creating a theme in WordPress.
I am using query_posts('tag=front')
to limit the posts on the front page. However, I want to let the user navigate through all posts, regardless of tags when on the a permalink page. I am using next_post_link()
; to deal with this.
I am using this to limit the posts on the index.php
:
query_posts( 'tag=front' );
I am using this to let the user click through each project, on single.php
:
<?php next_post_link('%link', 'Next post →', TRUE); ?>
However, it is only looping through posts tagged with front
, and not all posts regardless of tags. I want it to loop through all.
You can see it live here: http://kurt-theme.info/
query_posts
faints – Tom J Nowell♦ Sep 10 '13 at 14:09