Check if meta_key is present
-
Hi Hector,
I’m creating an output using this
<?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=all&order_by=views&limit=10&cat=23&has_tag('super')&header='Top 10 Recipes with Tag Super'"); ?>
It works well, but now I need to filter check if this post also has the meta_key “vegetarian”.Is there a way to add a condition to check if that meta_key is present. I’ve been looking online, but I am stuck with the “outside the loop” thing…
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Check if meta_key is present’ is closed to new replies.