Forums

No next posts link on category page? (2 posts)

  1. katdesign
    Member
    Posted 12 months ago #

    I've made my theme from an HTML template and I'm using a page template to show the posts from the Portfolio category.

    The category page is showing 5 posts per page, the same as the blog index, but the problem is there is no navigation link to the next page of posts and I don't know how to fix this.

    If you go to the portfolio category in the blog page here, then the links are there, but they aren't there on the portfolio page.

    The code I'm using for the navigation links is:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Can anyone help me? I'm not that good at PHP so I don't really know how to fix this without changing the whole layout of the category page..

  2. Sheri Bigelow
    Member
    Posted 11 months ago #

    You can user the previous_posts_link() and next_posts_link() functions for that. Here are the related help pages:
    http://codex.wordpress.org/Function_Reference/previous_posts_link
    http://codex.wordpress.org/Function_Reference/next_posts_link

Reply

You must log in to post.

About this Topic