Support

Account

Home Forums General Issues Whats the value of a filled field in Query? Reply To: Whats the value of a filled field in Query?

  • That doesn’t make any diffrence at all. Probably my fault because my code isn’t right, but could you give me a hint on my code down under:

    <?php query_posts(array('post_type' => 'referenser', 'posts_per_page' => '2', 'orderby' => 'rand', 'meta_query' => array( array('key' => 'recension', 'compare' => 'exists')))); while ( have_posts() ) : the_post(); ?>

    The field I want to check if it’s field is recension. If it’s not filled it should not query these posts.