Exclude categories when using array to show 3 posts from each category
-
The code below works great, except I can’t seem to properly exclude any category.
Where it says “‘category__in’ => array($category->term_id),” I have tried replacing the contents inside the parenthesis with term id numbers, like ‘3’, ‘5’ but that doesn’t seem to work. Any ideas on what I’m doing wrong here?
Thanks in advance!
[Code moderated as per the Forum Rules. Please use the pastebin]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Exclude categories when using array to show 3 posts from each category’ is closed to new replies.