- This topic has 1 reply, 2 voices, and was last updated 1 year, 1 month ago by .
I want to allow multiple post types to select_advanced field. I have a post type named "plot", but I also want to add another post type in the autosuggest.
See commented below.
array( 'name' => esc_html__( 'Plot', self::$namespace ), 'id' => self::$pin . '_plot_id', 'type' => 'post', 'label_description' => esc_html__( 'Start typing', self::$namespace ), 'post_type' => 'plot', <-----I WANT TO ALLOW MULTIPLE POST TYPES HERE----> 'field_type' => 'select_advanced', 'query_args' => array( 'post_status' => 'publish', 'posts_per_page' => -1, ) )
I couldn't find it in the docs. Is this possible?
Or can I achieve this using another field type?
- You must be logged in to reply to this topic.