Hi I really hope someone can help, I have a page which I only want to call pages with the type 'page' and they have to have both meta boxes filled.
I have this:
<?php query_posts( array( 'post_type' => 'page', 'meta_key' => 'Featured', 'meta_value' => 'yes', 'meta_key' => 'type', 'meta_value' => 'boucheron' ) ); ?>
But it shows the post even though it is not "Featured"...
Do I need to put some kind of "and" thing in there?
I am not a newby, but I'm new at php, just starting to do more advanced stuff.
If you like you can take a look at what I'm building:
If you look here, you can see the page template where I have the above code, and it's pulling in a page that only has "boucheron" in the "type" meta box.
Is there a better way of doing this?