WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] YARPP in single.php? (7 posts)

  1. MacMacken
    Member
    Posted 2 years ago #

    Is it possible to show YARPP as a part of content.php?

    YARPP via single.php works fine but I would like to integrate the related posts into the post content and not show it as a separate entity.

    Any suggestions – it might not be possible after all – are welcome!

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    By default (if you don't add related_posts() to your theme, but instead keep the "automatically display" option on in YARPP settings) YARPP will simply append the related posts display HTML to the content. Is that now what you want?

  3. MacMacken
    Member
    Posted 2 years ago #

    Sorry, I mixed up the title, my question refers to content.php and not to single.php.

    I would like to create a YARPP section between the actual content and the comments. That does not work with the default configuration since the YARPP section becomes a part of the content section (article, post, whatever). If I add related_posts() to single.php, my theme gets mixed up …

    Am I simply looking too far?

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Turning off "automatic display" and then calling related_posts() gives you the most control. You can move the related_posts() call around to be anywhere you want, so you should be able to do anything you want.

  5. MacMacken
    Member
    Posted 2 years ago #

    OK, I am trying to figure out why related_posts() in my content.php does not render the list of similar posts.

  6. MacMacken
    Member
    Posted 2 years ago #

    Thanks a lot, Michael, I was able to identify a problem within my theme. Great support!

  7. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    :) No problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic