WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Gardens
    Member
    Posted 8 years ago #

    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:
    http://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

  2. Gardens
    Member
    Posted 8 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
    Member
    Posted 8 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

Tags

No tags yet.