Trying to output one post from each category need to avoid duplicates
-
Hi and thanks in advance for any help.
I am running this basic query in my loop file to output one post from each category and sub-category:
Code in pastebin: http://pastebin.com/srwgpWN6
And so on for about 20 categories.
The issue is the posts are sometimes in multiple categories and this is causing duplicates on the homepage. What can I add to stop this duplication?
Thanks again.
Matt
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Trying to output one post from each category need to avoid duplicates’ is closed to new replies.