Limiting number of pages on homepage
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
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
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 times
- Contact:
Sticky content is not counted. Therefore another content (post) is shown.
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.I guess by making the homepage separate with three php inserts or includes ?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
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
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
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 78 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
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
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