• In the last few days, my “Related Posts” has been showing a row of 3 related posts – and then the same posts again. So I get 6 posts.

    I don’t have any custom code in my theme relating to JetPack.

    If I add:

    function jetpackme_more_related_posts( $options ) {
        $options['size'] = 2;
        return $options;
    }
    add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_more_related_posts' );

    Then I get 4 related posts!

    I can remove the automatic placement correctly. But if I use echo do_shortcode( '[jetpack-related-posts]' ); then I get the double related posts.

    The HTML injected into my page is
    <div id='jp-relatedposts' class='jp-relatedposts' ><h4><hr class="hr-bottom">More posts from around the site:</h4></div> so that only appears once.

    • This topic was modified 4 years, 11 months ago by Terence Eden.

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

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Related Posts showing twice’ is closed to new replies.