custom field as a boolean with a checkbox?

Have you already looked at the output of WP_Query, if you don’t submit the “meta_query” key? Do you get the posts for the event-posttype?

If yes, then you could check what the “more fileds”-plugin puts in the “event-archive” custom field. Maybe you have to set the value to integer 1 or just submit a boolean true. e.g.

'key'     => 'event-archive', 
'value'   => 1

'key'     => 'event-archive', 
'value'   => true


I’ve just installed the plugin, created a new meta field “event-archive” of type “checkbox” and some posts with and without this meta value.

If I use the following query, I get all posts from posttype “event” with the metavalue selected.

$args = array(
'post_type' => 'event',
'order' => 'desc',
'posts_per_page' => '5',
'numberposts' => -1,
'meta_query' => array(
        'key' => 'event-archive',
        'value' => 1,
        'compare' => '=',
        'type' => 'CHAR'

$archive_posts = get_posts($args);


  • You can also use WP_Query if you like
  • The “meta_query” parameter requires WordPress 3.1