carl-johan
Member
Posted 1 year ago #
Hi everyone
I'm going crazy over this, as it should be a dead simple thing, but I can't figure out how to solve it and I haven't found any notes on it either. What I'd like to do is this:
On an Author page (is_author) I'd like to exclude posts that are in my "News" category (cat_ID=7) only. Excluding the posts is easily done, but I'd like to keep posts that have other categories assigned to them as well, e.g. hide posts that are ONLY in the "News" category.
Is there a good way to go about this?
Thanks in advance!
/ Carl-Johan
ClaytonJames
Member
Posted 1 year ago #
I'm not completely sure if this is what you are after, but:
reference for excluding one category in posts using query_posts
Author parameters are farther down on that same page.
Sorry in advance if that isn't the reference you might be after. :-)
carl-johan
Member
Posted 1 year ago #
Thanks but yeah, that's not what I'm after. Using that query I exclude all posts that are in the News category, even if they are in other categories as well. I only want to sort out posts that are in no more categories than News.
Thanks for the suggestion though :)
carl-johan
Member
Posted 1 year ago #
Is this question in the wrong section maybe?