Meta box not saving

Since you are using single values anyway, how about trying just: $meta_SDate = get_post_meta($post->ID,’event_start_date’,true); $meta_EDate = get_post_meta($post->ID,’event_end_date’,true); Also note the following lines will need a space to separate the posted values so strtotime can work properly: $updStartD = strtotime(trim($_POST[‘event_start_date’]) . ‘ ‘ . trim($_POST[‘event_start_time’])); $updEndD = strtotime(trim($_POST[‘event_end_date’]) . ‘ ‘ . trim($_POST[‘event_end_time’])); I have added … Read more

get related sub-cat posts on custom post type

You can use a tax query! This snippet also makes use of wp_list_pluck, a super handy function for “plucking” properties from an array of objects (in this case, getting an array of term IDs from an array of term objects): // Get current posts location term(s) $locations = get_the_terms( null, ‘location_taxonomy’ ); if ( $locations … Read more

I have a custom taxonomy assigned to two post types. How do I create URLs for different term archives for each post type?

I think your issue is with the rewrite portion when you registered the custom taxonomy with posts. ‘rewrite’ => array(‘slug’ => ‘some-slug’, ‘with_front’ => false) You can replace some-slug with anything you would like. It might be possible to replace it with article/event-category to get the results you want. Setting with_front to false removes blog … Read more