Display metabox with date

In database, it stores the date details with prefix as _start and _end so you need to change the meta keys accordingly. Please have a look at the below code. <p>Start time details</p> <p>Date: <?php echo get_post_meta($post->ID, ‘_start_day’, true);?>.<?php echo get_post_meta($post->ID, ‘_start_month’, true);?>.<?php echo get_post_meta($post->ID, ‘_start_year’, true);?></p> <p>Hour: <?php echo get_post_meta($post->ID, ‘_start_hour’, true);?>:<?php echo get_post_meta($post->ID, … Read more

wp_query for more fields plugin

More fields Plugin is to enter additional input into the post, page etc. And that is Custom Fields in WordPress. To use WP_Query() for those Custom Fields input, you have to query for the meta_key. <?php //Query for only my custom field value $args = array( ‘meta_key’ => ‘your_field_key’ ); $wpse_query = new WP_Query($args); while( … Read more