Page 1 of 1
Limiting number of pages on homepage
Posted: Tue Jun 28, 2022 11:00 am
by HowardB
In the andy theme the homepage shows six items and I only want three - there is on config.php in the root of the theme
Please help many thanks
Re: Limiting number of pages on homepage
Posted: Tue Jun 28, 2022 12:52 pm
by Edi
This can be set at "Settings" > "General" > "General" > "Items per page".
Re: Limiting number of pages on homepage
Posted: Tue Jun 28, 2022 2:53 pm
by HowardB
That only works for inside pages - and not the home page
https://spainonthisday.com/
I have made three pages sticky which I want on the homepage, which I change daily but another for January 1 comes at the bottom because it is numbered 1 - how can I limit the homepage to three - I guess by making the homepage separate with three php inserts or includes ?
Many thanks for your great and quick support
Howard
Re: Limiting number of pages on homepage
Posted: Tue Jun 28, 2022 7:00 pm
by Edi
Sticky content is not counted. Therefore another content (post) is shown.
I guess by making the homepage separate with three php inserts or includes ?
This would be a possibility. You can use an if condition in the file
index.php and show for example with an additional template
mainpage.php sticky content only.
Re: Limiting number of pages on homepage
Posted: Tue Jun 28, 2022 8:29 pm
by HowardB
Ah, I didn't realise that sticky isn't counted.
If I remember the position number and set it to zero then I get the single story on the homepage and the following day return it to the number, which solves the problem
Many thanks
Howard
Re: Limiting number of pages on homepage
Posted: Tue Jun 28, 2022 9:49 pm
by Edi
You could do something with the function date("z")+1 (number of the day of the year) and show the content of the day.
Re: Limiting number of pages on homepage
Posted: Tue Jun 28, 2022 10:17 pm
by HowardB
What a great idea
Knowing about the sticky pages i've ungraded Bludit and am using BogX theme which looks great
I'll see if I can automate the front page for tomorrow
I do think V4 is fit for purpose
Many thanks
Howard