displaying all the posts of the day on the index page
-
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
- The topic ‘displaying all the posts of the day on the index page’ is closed to new replies.