Exclude an entire category on Related Post problem
-
Hello,
I use this code :
function jetpackme_filter_exclude_category( $filters ) { $filters[] = array( 'not' => array( 'terms' => array( 'category.slug' => array( 'archive-agenda' ), ), ), ); return $filters; } add_filter( 'jetpack_relatedposts_filter_filters', 'jetpackme_filter_exclude_category' );
“archive-agenda” is the slug of the category to ban of related post
I have last version of wordpress, last version of jetpack.
I have launched Jetpack Sync manually …
Wait 24h
Clean Cache
…
Nothing changeThank for your help
The page I need help with: [log in to see the link]
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Exclude an entire category on Related Post problem’ is closed to new replies.