@ Bryan
Oh, no I see…
Technically this is possible but this requires editing a PHP file for the template. The file name is cmap.php The file can be found here:
../wp-content/plugins/connections-cmap/
Goto line 543 and insert this (so it becomes line 544):
'include' => array(2,3),
The numbers will be the category ID/s.
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),
);
In regards to the apostrophe or lack of in the shortcode…
This depends on the shortcode option settings value. The WordPress shortcode parser support single quotes ', double quotes " and no quotes for shortcode option value IF that value is a single “word” (alphanumeric string with NO spaces). So, that said, all of the following are equivalents:
[connections category=2 enable_category_by_root_parent=true]
[connections category='2' enable_category_by_root_parent='true']
[connections category="2" enable_category_by_root_parent="true"]
This one would not work correctly:
[connections category=2,3 enable_category_by_root_parent=true]
It would need to be either:
[connections category='2,3' enable_category_by_root_parent=true]
[connections category="2,3" enable_category_by_root_parent=true]
There are more thing you can get away with, but generally you are better off quoting the option values as that is the safest reliable way to do it.
Hope that helps!
