related post category filter not working
-
I have a post category with the slug “success”
I also have this code in my functions.php
Even though I used the filter in line with jetpack customization guidelines posts in the category “success” still appear in the related posts section.
I thought it may be a caching or indexing issue but it has been a week with no change and I have re-indexed / cleared cache.
/*filter out success stories from related posts*/ function jetpackme_filter_exclude_category( $filters ) { $filters[] = array( 'not' => array( 'term' => array( 'category.slug' => 'success' ) ) ); return $filters; } add_filter( 'jetpack_relatedposts_filter_filters', 'jetpackme_filter_exclude_category' );
- The topic ‘related post category filter not working’ is closed to new replies.