Forums

Paged doesnt work on category pages (2 posts)

  1. gbettan
    Member
    Posted 9 months ago #

    Hi!
    I need to use "pagenavi" for category pages. What im trying to do is a unique category.php page and show only the posts of each category... the problem become when I write 'posts_per_page=5'... If i go to http://blabla.bla/category/category_name/page/2 it doesn't work!!, but if I go to http://blabla.bla/page_name/page/2 it works.... so, the problem is in the categories . What can I do? because i dont want to make one page for each category...

    thanks!!

  2. Digital Raindrops
    Member
    Posted 9 months ago #

    Hi,
    I had a similar problem with a twenty eleven child theme and a custom query.

    I created a template page for my site for all posts as a blog, the paging works with the code below.

    The code is for a theme with custom template parts and sidebars, the query part is what you should look at, and maybe the wp-pagenavi condition, incase the plugin is disabled.

    http://pastebin.com/1WEDp2ZT

    HTH

    David

Reply

You must log in to post.

About this Topic