Support » Plugins » [Plugin: Yet Another Related Posts Plugin] Controling Where YARPP is displayed in a post

  • Hello,

    I am having trouble controlling where this plugin is displayed in my posts. I currently use Sociable and it is displaying before YARPP. Is there a way to have YARPP display before Sociable?

    I have looked all over the internet for help on this, but can’t seem to gind anything. Any help would be greatly appreciated 🙂

    Thanks,

    Carol Ann

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Carol_Ann

    (@carol_ann)

    Help please 🙂 Maybe i’m just using the wrong search terms. If anyone could point me in the right direction, I can take it from there.

    I am facing the same problem. Hope someone helps. 🙂

    • Uncheck the option “Automatically display related posts?” in the plugin admin panel.
    • In file single.php insert the following code where you want related posts to appear. <?php related_posts(); ?>

    Hope this helps.

    PS. Adding <?php related_posts(); ?> will display only related posts. Adding <?php related_pages(); ?> will display related pages. Adding <?php related_entries(); ?> will display both related posts and pages.

    Kejatz,

    I’m having the opposite problem. I’m using the Thesis theme.

    YARPP is showing up in Pages — which I don’t want.

    Example http://www.billpetro.com is a static Page.

    I’ve turned off “Automatically display related posts” in the plugin.

    I have in the “After Post” field of OpenHook entered:
    <?php related_posts() ?>
    and turned on: Execute PHP on this hook

    Any ideas?

    Why don’t you try to enter that code yourself into single.php file through the WordPress internal editor? Maybe the OpenHook is making some problem. Remove everything from the “After Post” field and then look if pages display the related posts. If page stops displaying related posts, then OpenHook plugin was the problem. Then as I said use WP editor to add <?php related_posts(); ?> manually.

    I have another suggestion, but this is not a solution. In related posts plugin remove the text that will be displayed if no related posts wwere found: “No Related Posts”. That way plugin won’t display anything if related posts are not found. This will remove that line at least from the static home page and can buy you time until you figure out how to solve the actual problem.

    Kejatz, thanks for the good advice. Hope this was all resolved.

    debrabergparis

    (@debrabergparis)

    @kejatz, @mitcho

    I’ve been looking for a solution to what I realize is a basic inability (I don’t know how to code, I just pray that plugins work perfectly out-of-the-box), but haven’t found an answer in the forums.

    I’m using WP 2.9.2 and Atahualpa 3.4.5. Just installed YARPP earlier today.

    1) “Related posts” appears in single post pages, but not on multiple post pages (ie. the home/blog/article page). I would like it to appear at the bottom of posts on multiple post pages too.
    2) I disabled “Automatically display related posts” in YARPP settings.
    3) I want to add <?php related_posts(); ?> or <?php related_pages(); ?> or <?php related_entries(); ?> somewhere, or as suggested above, in single.php.
    4) I don’t have a single.php in Atahualpa.

    My question: Where do I add that line of code?

    Thank you. 宜しくお願いします。

    Sorry, I just took a glance at Atahualpa, but it’s quite a beast. I’m not sure where exactly things are supposed to go. I’m tagging this Atahualpa… hopefully someone with knowledge of Atahualpa can help you.

    Put the
    <?php related_posts(); ?>
    string into the Footer field(s) on Atahualpa’s Post & Pages > Edit Post/Page Info Items screen.

    I put it on its own line, under the other entries, so it stands alone.

    You can see how it looks at http://thegrotonline.com/

    And I have Automatic toggled ON.

    Cheers,
    Art

    Thanks @artc1209!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Controling Where YARPP is displayed in a post’ is closed to new replies.