From 441e85eec0d269e69176ecdecfeb1c940c48afd3 Mon Sep 17 00:00:00 2001 From: Maciej Gryniuk Date: Sun, 30 Aug 2015 16:12:44 +0200 Subject: [PATCH] Allow publicly_queryable be custom parent post types. --- views/post_type.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/post_type.php b/views/post_type.php index 47577ff..2bf3c34 100644 --- a/views/post_type.php +++ b/views/post_type.php @@ -429,8 +429,8 @@ class="cctm_checkbox" // checkbox_id, css_id, checked_value /* Handle custom hierarchical stuff */ $i = 0; - $args = array('public' => true ); - $post_types = get_post_types($args); + $args = array( 'public' => true, 'publicly_queryable' => true ); + $post_types = get_post_types( $args, '', 'or' ); //print_r($data['post_type']s); exit; foreach ( $post_types as $pt => $v ) { $is_checked = '';