I have followed this thread and want to ensure that I understand the resolution. I want to show only the Parent in my root directory. To do this I have to edit the wp-content/plugins/connections-cmap/cmap.php file to insert
‘include’ => array(2,3),
Where the numbers will be the category ID/s.
And the entire block of code should look like this after the edit:
$atts = array( ‘default’ => self::$atts[‘str_select’], ‘select_all’ => self::$atts[‘str_select_all’], ‘type’ => self::$atts[‘enable_category_multi_select’] ? ‘multiselect’ : ‘select’, ‘group’ => self::$atts[‘enable_category_group_by_parent’], ‘show_count’ => self::$atts[‘show_category_count’], ‘show_empty’ => self::$atts[‘show_empty_categories’], ‘parent_id’ => self::$atts[‘enable_category_by_root_parent’] ? self::$atts[‘category’] : array(), ‘exclude’ => self::$atts[‘exclude_category’], ‘include’ => array(2,3), );
Subsequently, I would have to make a page for each Parent to access the Child categories, correct? Is this the only way to only show the Parent and not the Child categories? What if I only want to show the Parent and Child but not the sub_Child? For example, Federal (parent) Agency (child) Cyber (sub-child) What shortcode would I use?
