• Resolved vikou1008

    (@vikou1008)


    Hi,

    I’ve tried to exclude one of my categories named “portfolio” from related posts, following the instructions:

    function jetpackme_filter_exclude_category( $filters ) {
    $filters[] = array( ‘not’ =>
    array( ‘term’ => array( ‘category.slug’ => ‘portfolio’ ) )
    );
    return $filters;
    }
    add_filter( ‘jetpack_relatedposts_filter_filters’, ‘jetpackme_filter_exclude_category’ );

    Yet the posts from this category keep on showing up in the related posts section.

    Any idea how to fix this?

    Thank you for your help!

Viewing 1 replies (of 1 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Sorry about the delay in writing back to you.

    Could you give me a few examples of some of the posts where you have excluded a specific category, but still see it come in your Related Posts?

    Could you also let me know the exact code you used, and where you added it?

    If you want your site URL to remain private, you can also contact us via this contact form:
    https://jetpack.com/contact-support/?rel=support

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude category from related posts’ is closed to new replies.