limit my query to two categories, one cat further limited by custom field
-
Hi, so I have two categories that feed into my home page, cat 1 and cat 4. I want my homepage to display all of category 4, but for cat one, i only want it to display posts with the meta key “available_now”.
so I did this:
<?php query_posts(array('cat=1&meta_key=available_now'','cat=4')); if (have_posts()) : while (have_posts()) : the_post(); ?>
only problem, it displays all of cat 1 posts, even those without that meta key. what am i doing wrong? I followed the documentation to the letter.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘limit my query to two categories, one cat further limited by custom field’ is closed to new replies.