[resolved] displaying all the posts of the day on the index page (3 posts)

  1. Gardens
    Posted 10 years ago #


    I modified my index page, so that all the posts of the day are displayed, listed by categories.

    If you want to see what it looks like, it's here:

    But my problem is that I only get 10 posts displayed.

    I won't have a lot of posts everyday, maximum 15 posts, but I'd like to have them all on the index page. So that instead of writing : "Today's last 10 posts", I could write "Today's last posts".

    I'm using the query_posts function, to only display the posts of the day.

    I tried to add the parameter show_posts, with a high value, but it isn't working.

    Here is what I did :


    But I always have 10 posts displayed.

    Can anybody help me with that ? That would be great !


  2. Gardens
    Posted 10 years ago #

    Hi everybody,

    I finally found the answer : it was a configuration problem.

    If someone has this problem one day, here's what you have to do :

    Go to "Options" > "Reading" and there, you can change the maximum number of posts displayed on the first page.

    Now my index is exactly like I wanted it. :)

  3. cybernewsmaster
    Posted 10 years ago #

    That's great. Thanks.
    I just started using WP. I'm sure a lot of newbies will want to do the same thing you described.
    Although you may want to make sure you don't have too many links on one page. According to Google's webmaster guidelines, they recommend you keep your links to about 100 per page. Although I've seen plenty of high ranking pages with hundreds of links...

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.