query_posts and only show results if a custom field is not empty
How do I query_posts
and only show results if a custom field is not empty or has a value.
I want to put in a URL in a custom field and only show these pages if there is a URL?
current code but I can't figure out the rest:
$args = array( 'posts_per_page' = '10',
'post_type' = 'programmes',
'orderby' = 'meta_value_num', 'meta_key' = 'popularityfig',
'order' = 'DESC',
);
Topic custom-field query-posts Wordpress
Category Web