[Plugin: Zone Manager (Zoninator)] Add Specific Custom Post Types
-
Zoninator 0.2 has improved support for custom post types. However you need to do something to add specific custom post types. Please let me know if this is the right approach. I’d add the following to something like the theme functions.php to enable public custom post types in zoninator:
function mf_add_zoninator_post_types () { global $zoninator; $available_post_types = array_values(get_post_types(array('public' => true, '_builtin' => false), 'names')); $zoninator->default_post_types = array_merge($zoninator->default_post_types, $available_post_types); } add_action('zoninator_pre_init', 'mf_add_zoninator_post_types');
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: Zone Manager (Zoninator)] Add Specific Custom Post Types’ is closed to new replies.