Limiting number of pages on homepage

Post Reply
HowardB
Sr. Bludit
Posts: 40
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 2 times

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

This can be set at "Settings" > "General" > "General" > "Items per page".
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
HowardB
Sr. Bludit
Posts: 40
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 2 times

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 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.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
HowardB
Sr. Bludit
Posts: 40
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 2 times

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 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.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
HowardB
Sr. Bludit
Posts: 40
Joined: Sat Jun 04, 2022 1:31 pm
Been thanked: 2 times

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