• Resolved gardens

    (@gardens)


    Hello,

    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:
    https://how2guide.info/

    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 :

    $day=date(“d”);
    $month=date(“m”);
    $year=date(“Y”);
    $query=”day=$day&month=$month&year=$year”;
    $query.=”show_posts=500″;
    query_posts($query);

    But I always have 10 posts displayed.

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

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter gardens

    (@gardens)

    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. ??

    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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘displaying all the posts of the day on the index page’ is closed to new replies.