Exclude category from loop
-
Hello ScriptsTown,
I come with another question if you can help,
Is it possible to exclude children categories of a parent category from the loop by ID or something?
Long story short, I want to display children categories from a parent category with ID “5” with images in separate loop bellow, got this part done.
I have installed a plugin that displays category images, I got the code working somehow, place it right before <!– .cat-links –> into the “content-single” php file and created another loop to display them, now the children categories of “5” are show with images.
My problem is the children categories of “5” are show twice, would it be possible to exclude them from the first loop?
Thanks
- The topic ‘Exclude category from loop’ is closed to new replies.