[Resolved] how to filter the loop with custom fields
Hi I use custom fields on my blog and I want to display in the loop only post with a specific custom field meta value.
Currently I use this trick :
<?php if (get_post_meta($post->ID, 'custom_field_disponibilite', true) == 'ND') continue; ?>
But with this, the post number is inferior to the post number select in the admin area.
I think I can use a add_filter or add_action inside the function.php of my theme but I have no idea how to implement it.
Thanks for your help
- The topic ‘[Resolved] how to filter the loop with custom fields’ is closed to new replies.