Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'jnews_get_content_attr', 'custom_filter_tags', 10, 3 );
- function custom_filter_tags( $attr, $page, $term_id ) {
- if ( 'jnews_category_' === $page ) {
- if('_17'){ /* this filter will apply in category page with cat id 17 , you can change the _17 value */
- $attr['exclude_tag'] = '16,17'; /* change with tags id that you want to exclude */
- }elseif('_18'){ /* this filter will apply in category page with cat id 18 , you can change the _18 value */
- $attr['exclude_tag'] = '16,17'; /* change with tags id that you want to exclude */
- }else { /* this will aplly to global category page template */
- $attr['exclude_tag'] = '16,17';
- }
- }
- return $attr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement