I want to display post from a categorie on a page, but only thoses with a certain custom field. I trying this custom query but all the posts in that category are displayed:
<?php $actus = new WP_Query("meta_key=Esat&meta_value=Hennebont&cat=4&showposts=4"); while($actus->have_posts()) : $actus->the_post();?>
I don’t understand why this can’t work 🙁
- The topic ‘Displaying posts fromcategorie based on custom field’ is closed to new replies.