• Is it possible to make different number of posts in category? And is it possible to make selection to show 10 posts per page, 20 posts per page, 30 posts per page and so on ?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • go to “settings” -> “reading”

    probably this is what u need

    Thread Starter andriukass

    (@andriukass)

    Thank you for reply, but i need different from global posts number.. i need just in category the diferent number of posts and if i could change the number how many posts to show in one page. and it would be like dropdown meniu…

    Thread Starter andriukass

    (@andriukass)

    Thank but this is not working with wp-pagenavi…

    You’d have to get to grips with building a custom WP_Query(). You may find the various filters useful, particularly, add_filter('posts_limits','my_post_limit_filter'); which you can use to dynamically set your query limit.

    As for your links, or drop down, you’d need some custom query parameter, perhaps ?ppp=10 which you can tack onto the page url.

    And then finally use some conditional functions such as is_archive() to test when to modify the page limits.

    Hope that gives you some pointers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different Posts number in Category’ is closed to new replies.