How to get events using multiple custom meta fields?

You can use your current code to create the query and then in your loop run a check before displaying the events something like <?php query_posts(‘meta_key’ => ‘end_date_value’, ‘meta_compare’ => ‘>’, ‘meta_value’ => $todaysDate); while ( have_posts() ) : the_post(); $post_custom = get_post_custom($post_id); if ($startDate < $post_custom[‘start_date_value’]){ //your loop here } } ?> keep in … Read more

Custom post type missing custom fields

Is display of the “Custom Fields” metabox enabled for your Custom Post Type’s Edit Screen? To check: 1) Edit (Post Type) Screen 2) Click the “Screen Options” tab in the upper right-hand corner 3) Ensure the “Custom Fields” checkbox is enabled WordPress 3.1 made some (ahem) decisions regarding which metaboxes should display by default on … Read more