• Resolved csburdick

    (@csburdick)


    I’m using Jetpack Related Posts and have a number of customizations done using the support site to customize: (https://jetpack.com/support/related-posts/customize-related-posts/).

    However I ran into one problem using the ‘Selectively disable Related Posts from appearing on specific posts’ option. I successfully applied that (using is_page() instead), however it’s still showing the title for the related posts (“RELATED”) at the bottom.

    Thank you for any help!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support KokkieH

    (@kokkieh)

    Hi there,

    Can you please give a link to a specific post where this is happening, along with the exact snippet you’re using to hide Related Posts on that post?

    Thread Starter csburdick

    (@csburdick)

    Thank you @kokkieh sure thing. Here’s an example page: https://www.bestroboadvisors.org/advertising-disclosure/

    Here’s the code I’m using to exclude RP from displaying on those pages:

    function jetpackme_no_related_posts( $options ) {
    if ( is_page( array( 2, 757, 816, 846 ) ) ) {
    $options['enabled'] = false;
    }
    return $options;
    }
    add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_no_related_posts' );

    It’s successfully excluding them, but it’s still displaying those headlines “Read these next”

    Thanks!
    Chris

    Plugin Support Fotis

    (@fstat)

    Hi there,

    You can use the following CSS code to hide that title from that page only:

    .page-id-816 #jp-relatedposts {
        display: none;
    }
    Thread Starter csburdick

    (@csburdick)

    Thanks Fotis. Not an ideal solution, but it works. Thank you for the help.

    Plugin Support Fotis

    (@fstat)

    You’re welcome ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Jetpack Related Posts header won’t go away’ is closed to new replies.