How to add a loop

Post Reply
letontop
Jr. Bludit
Posts: 4
Joined: Sun Feb 07, 2021 4:14 am

Code: Select all

<?php if ($page->custom('Hidearticle')) {continue;}?>
I used the code above.
One article was filtered.
But I set "Items per page=8". But only 7.
What can I do to add a loop after executing the code to make it 8.
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 can find an example of a loop in the template home.php of a theme.

For example here (from line 43):

https://github.com/bludit/bludit/blob/m ... p/home.php

And: if ($page->custom('Hidearticle')) is not a condition.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply