Okay, the title is confusing.
But basically I had resolved a problem I faced in wordpress.
If we want to exclude a category from a page/homepage, this is what we do:
Okay nice.
But what if now, we would want to include certain specific posts which happens to be in the excluded category?
Solution? Create a category, call it “highlights” or whatever code your “query posts” like this:
From the above codes, all the posts in the category 152 153 154 and 155 will be excluded, and will not load. However, if the posts happens to be in cat 156 or 148, it will still load according as usual.
However, the only limitation is that, you cannot get it to exclude these cats, while include a specific cat + the rest of the posts ; nope. cannot be done that way. Once you start including specific cats, you will have to list all the cats that you want to load, if not, you will start to have missing posts from the cats that you fail to include.
So long!