Showing Only If
-
I broke down my homepage to sections that show a few categories with with a few posts.. i use the code below. how can i get it to only show the category header if the section has posts?
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Now whenever its empty, I manually just comment it out – I know there’s a way to doing with code but i cant get the syntax right…
thanks in advance!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Showing Only If’ is closed to new replies.