Custom Post type Filers for Sitewide Tags plugin
-
I have looked around other forum posts implementing this and thought the code below should work. It causes a white screen, I checked the code as much as I can…. Any help?
function my_swt_post_type_filter( $ig_postypes ) { $ig_postypes = array('deal'); return $ig_postypes; } function my_swt_custom_tax_filter( $ig_taxonomies ) { $ig_taxonomies = array('deal_categories','dealtype','deal_location','cities'); return $ig_taxonomies; } add_filter( 'sitewide_tags_custom_taxonomies', 'my_swt_custom_tax_filter' ); add_filter( 'sitewide_tags_allowed_post_types', 'my_swt_post_type_filter' ) ;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Post type Filers for Sitewide Tags plugin’ is closed to new replies.