Limiting number of pages on homepage

Post Reply
HowardB
Ssr. Bludit
Posts: 27
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 1 time

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
User avatar
Edi
Site Admin
Posts: 2838
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 19 times
Been thanked: 28 times
Contact:

This can be set at "Settings" > "General" > "General" > "Items per page".
HowardB
Ssr. Bludit
Posts: 27
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 1 time

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
User avatar
Edi
Site Admin
Posts: 2838
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 19 times
Been thanked: 28 times
Contact:

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.
HowardB
Ssr. Bludit
Posts: 27
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 1 time

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
User avatar
Edi
Site Admin
Posts: 2838
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 19 times
Been thanked: 28 times
Contact:

You could do something with the function date("z")+1 (number of the day of the year) and show the content of the day.
HowardB
Ssr. Bludit
Posts: 27
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 1 time

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
Post Reply