Forums

More posts on other pages (2 posts)

  1. JavaKrypt
    Member
    Posted 2 years ago #

    Hey!

    I have a blog setup (Antsta.com), and on the main homepage I have the number of posts set to display 13. The reason why is because it is a photography webiste and the homepage only lists thumbnails. 13 is the perfect number to make the page more "sqaured". The 1st post is a full displayed post, showing the full photograph, so again fits perfectly with 13.

    But when you navigate to other pages. Ie: /page/2 the number of posts is also 13. This doesn't work because there is a big block of unused space. So I would like a plugin that would allow me to put the number of posts on different pages up to 24 to make it more "sqaured".

    I am currently using a plugin called "Different Posts Per Page" but it doesn't support pages, only categories etc. which are fine thanks to this great plugin.

    Does anyone know how I can go about it, or can direct me to a plugin that will do this? I have searched.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    One approach would be to set the number of posts per page to 24. Then add some code to index.php to limit the number of posts on the first page only to 13 using something like:
    <?php if( is_home() && !is_paged() ) query_posts('showposts=13')'?>

    http://codex.wordpress.org/Template_Tags/query_posts
    http://codex.wordpress.org/Conditional_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags