Category page navigation (2 posts)

  1. nathanbunn
    Posted 3 years ago #

    I have been using this forum post in aiding me to display all of the posts I have from one category:


    The codes work perfectly, except I can't seem to get the page navigation links working. I have page navigation links appearing, they link to the right pages and they disappear when needed, but they don't affect the posts that are displayed. The code I am using for my page is listed in http://wordpress.org/support/topic/display-the-posts-of-one-category-in-a-page-solved#post-978142. In fact, none of the codes I have used from this page have had working page navigation links. Can anyone give me any help on this front?

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    add the pagination parameter to the query;


    <?php query_posts('category_name='.get_the_title().'&post_status=publish,future&paged='.get_query_var('paged'));?>

Topic Closed

This topic has been closed to new replies.

About this Topic