WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] YARPP appearing twice (4 posts)

  1. llaughy
    Member
    Posted 3 years ago #

    Greetings -

    I am re-opening this thread since the previous thread that is marked as 'resolved' doesn't actually say how to address this issue.

    I am using version 3.1.9 of YARPP and it is displaying my Yet Another Photoblog uploaded image a second time in the post. This happens when I check "Automatically display related posts" and also when I uncheck that and manually insert related_posts() into my single.php file. I am using a custom YARPP template to display thumbnails, but this also happens when I use the supplied templates.

    I'm sure this is a very simple thing, just not sure how to get YARPP to stop doubling up the image. Thanks for any help!

  2. llaughy
    Member
    Posted 3 years ago #

    Here's a little more information:

    This conflict seems to occur between YAPB and YARPP - and the duplication of image is occurring when I activate the YARPP template to display posts as thumbnails. The duplicate photos only show up on the single.php page when you click through the thumbnail links themselves. Viewing the individual post page through any other links only displays one image in the post.

    Thought this might help - thanks!

  3. pkenjora
    Member
    Posted 3 years ago #

    We had the same problem on a similar plugin, your theme is triggering the_content twice. It could also be another plugin triggering the code. You may need to add a singleton to the code.

    To debug just turn off each of your plugins until you narrow things down. May also be good to default the theme to standard.

    Some themes and plugins use the_content incorrectly.

  4. llaughy
    Member
    Posted 3 years ago #

    I ended up turning off YAPB and added theme support for post-thumbnails to my child theme. Then I created a custom YARPP template based on the example templates supplied that displays thumbnails instead of titles using the_post_thumbnail(). This solution is working well for me and was simpler than sorting out the plugin conflict between YAPB and YARPP. Thanks for the suggestion!

Topic Closed

This topic has been closed to new replies.

About this Topic