I am trying to:Create a Parent cpt in Toolset with a child cpt created by The Events Calendar
I visited this URL: Toolset CPT post edit page
I expected to see: ddlist of TEC created cpt "Events"
Instead, I got: no ddlist
The Events calendar plugin creates cpt Events and Venues. I used Toolset to create a cpt Concert Series for use as a parent to both Venues and Events, both of which show and can be set up as children when creating the concert Series cpt.
When going to an Event Post I can select a "Concert Series" to be used as a parent from a ddlist.
When going to a Concert Series post neither Events or Venues populate ddlists as expected.
The following shows how the 2 TEC post types are registered
/**
* Args for the event post type
* @var array
*/
protected $postTypeArgs = array(
'public' => true,
'rewrite' => array( 'slug' => 'event', 'with_front' => false ),
'menu_position' => 6,
'supports' => array(
'title',
'editor',
'excerpt',
'author',
'thumbnail',
'custom-fields',
'comments',
),
'taxonomies' => array( 'post_tag' ),
'capability_type' => array( 'tribe_event', 'tribe_events' ),
'map_meta_cap' => true,
'has_archive' => true,
);
/**
* Args for venue post type
* @var array
*/
public $postVenueTypeArgs = array(
'public' => true,
'rewrite' => array( 'slug' => 'venue', 'with_front' => false ),
'show_ui' => true,
'show_in_menu' => 0,
'supports' => array( 'title', 'editor' ),
'capability_type' => array( 'tribe_venue', 'tribe_venues' ),
'map_meta_cap' => true,
'exclude_from_search' => false,
);
protected $taxonomyLabels;