Support » Plugin: Jetpack by WordPress.com » Is it posible to selectively add ‘Related Posts’ to pages?

  • Resolved millennial1

    (@millennial1)



    Hi there,

    I’ve searched around but haven’t found the solution yet. If it’s not possible to do so easily, then it’s okay and it isn’t a problem. But if it is, it would be nice to know.

    I would like to add ‘related posts‘ to a small minority of pages (currently, only one page out of a dozen). I don’t want the other Pages to appear as ‘Related Posts’. I only want posts (as opposed to pages) to appear among the ‘Related Posts’ search results. Even if the “Related Posts” is appearing on a page.

    Also, I’m not looking for ‘Related Posts’ to appear by default on all pages. I want it to be disabled by default on pages and selectively include them via the [jetpack-related-posts] shortcode or adding something like:

    <?php
    if ( class_exists( 'Jetpack_RelatedPosts' ) ) {
        echo do_shortcode( '[jetpack-related-posts]' );
    }
    ?>

    to the page’s template.

    In other words, I’m looking for the ability to selectively add “related posts” to a small minority Pages, with only posts appearing among the “Related Posts” search results. I hope I haven’t made a mess trying to explain myself. If so, sorry for that.

    Is this something that has been solved before elsewhere I could look at?

    Kind regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support lizkarkoski

    (@lizkarkoski)

    Hi @millennial1

    Could you post your site URL here, so I can have a look?

    If you want it to remain private, you can also contact us via this contact form:
    Contact Support

    Plugin Support lizkarkoski

    (@lizkarkoski)

    I think this could be helpful to you:

    https://jetpack.com/support/related-posts/customize-related-posts/

    Check out the part about Selectively disable Related Posts from appearing on specific posts

    millennial1

    (@millennial1)

    Hi @lizkarkoski

    Thanks for the input. I had sent a CS email about this question I believe. Yeah, I saw that but didn’t think it would be a worthwhile solution here.

    It would mean that if I had 100 pages and wanted to add related Posts to three pages, I’d have to enable Related Posts on all 100, and selectively disable one by one Related Posts on 97 of them just to get it to appear on three. As well as all future pages. It’s a lot more trouble than it’s worth.

    It isn’t really worth the hassle if that’s the way it would have to be done. Thanks for the help though.

    Plugin Contributor Stef

    (@erania-pinnera)

    Hey @millennial1!

    If you’ve sent a message to us through the contact form, you’ll get a reply shortly about that 🙂

    Meanwhile, I’m marking this as solved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.