我正在尝试显示自定义字段的结果,该字段在自定义帖子类型上不是空的,但没有得到任何结果?
<?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`