query_posts does OR not AND when querying for multiple categories
-
Hi, I have 5 main categories and one feature category (#6). For every main category I have feature posts. On my custom frontpage I’d like to show the most current feature for each of the 5 main categories.
I’ve tried several hacks, asides, plugins, adhesives I stumbled across in the last few days, but all I want is a simple query_posts(‘cat=1,6’) as i found it in the codex http://codex.wordpress.org/Template_Tags/query_posts Unfortunately this functions does a query like 1 OR 6. Well, to keep a long story short. All I need is 1 AND 6. How can this be done?
Any hints? Thanks for your help.
The topic ‘query_posts does OR not AND when querying for multiple categories’ is closed to new replies.