Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author BlueGlass

    (@blueglassinteractive)

    Hi @riadm,

    Seems you are using some “Related Posts” plugin. Which is adding this automatically, check it’s settings, should be able to disable it for “Jobs”

    Thread Starter riadm

    (@riadm)

    Thank you for your answer, it does seem to be a plugin but not one I would have expected because i have been using your plugin and this one together with no compatibility issue for some time now.

    It seems to be related to jetpack’s ‘similar posts’ functionality, do you perhaps know where to disable it for jobs?

    Plugin Author BlueGlass

    (@blueglassinteractive)

    Try adding this to your theme functions.php

    function jetpackme_no_related_posts( $options ) {
        if ( is_singular( 'jobs' ) ) {
            $options['enabled'] = false;
        }
        return $options;
    }
    add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_no_related_posts' );

    this will disable it for all other post_types except post’s

    Best wishes

    • This reply was modified 5 years, 10 months ago by BlueGlass.
    Thread Starter riadm

    (@riadm)

    Hi,

    Thanks again for your quick reply.

    I tried adding your code to functions.php but it does not seem to be working.

    What’s weird is that the “similar posts” seem to be added at the end of each section, not only at the end of the job post. When you check the source code, you can see all “divs” are of relatedposts type : <div id=’jp-relatedposts’ class=’jp-relatedposts’ >

    • This reply was modified 5 years, 10 months ago by riadm.
    • This reply was modified 5 years, 10 months ago by riadm.
    Plugin Author BlueGlass

    (@blueglassinteractive)

    I modified the code a bit in my last answer, you can try it also.
    Or additionally tyou can disable the Related Posts complettely: https://jetpack.com/support/related-posts/

    Or you can hide them on that page with CSS

    .single-jobs .jp-relatedposts {
        display: none;
    }
    Thread Starter riadm

    (@riadm)

    Thank you but we prefer not to disable that functionality entirely.

    Unfortunately, the updated last bit of code for functions.php did not work either.

    However, the CSS solution works, thank you!

    • This reply was modified 5 years, 10 months ago by riadm.
    • This reply was modified 5 years, 10 months ago by riadm.
    Plugin Author BlueGlass

    (@blueglassinteractive)

    @riadm css code I posted will hide it from all job postings

    Thread Starter riadm

    (@riadm)

    Yes, it “does the job”, thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Bug] “Similar blog posts” mentioned after each section’ is closed to new replies.