Enable shortcodes in custom post types?
-
I’ve searched around and couldn’t find any information on how to enable shortcode filters in my simple custom post type (below). I’m hoping somebody here smarter than me might point me in the right direction.
/* * Add Banner Post Type */ function register_sc_banner_post_type() { $args = array( 'label' => __('Banners'), 'singular_label' => __('Banner'), 'public' => true, 'show_ui' => true, 'exclude_from_search' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug'=>'banner'), 'supports' => array('title', 'editor','custom-fields') ) ); register_post_type( 'sc_banner' , $args ); } add_action('init', 'register_sc_banner_post_type');
The shortcode and custom post type are both defined in my theme’s functions.php file. Is there a hook I need to apply the shortcode filters to my custom post somehow?
Thanks for any help you might provide!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Enable shortcodes in custom post types?’ is closed to new replies.