Page 1 of 1
How to add a loop
Posted: Tue Nov 09, 2021 7:46 am
by letontop
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.
Re: How to add a loop
Posted: Tue Nov 09, 2021 10:37 am
by Edi
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.