I'm trying to show result for a custom field that is not empty on a custom post type but getting no results?
<?php
if (have_posts()) :
$args = array(
'post_type' => 'programmes',
'meta_query' => array(
'key' => 'linktovideocatchup',
'value' => '',
'compare' => 'NOT LIKE'),
//'caller_get_posts' => 1,
);
?>
<?php query_posts( $args ); ?>
<?php while (have_posts()) : the_post(); ?> `enter code here`
wp_post_meta
table in the DB (using phpMyAdmin or whatever) and verified that you have one (or more) such items? If so, have you then checked the correspondingid
(s) inwp_posts
and verified that at least one of them has apost_type
ofprogrammes
?