Forums

[Plugin: Yet Another Related Posts Plugin] Controling Where YARPP is displayed in a post (6 posts)

  1. Carol_Ann
    Member
    Posted 1 month ago #

    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

  2. Carol_Ann
    Member
    Posted 1 month ago #

    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.

  3. HistoryOfMacedonia
    Member
    Posted 1 month ago #

    I am facing the same problem. Hope someone helps. :)

  4. Kejatz
    Member
    Posted 1 month ago #

    • 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.

  5. billpetro
    Member
    Posted 3 weeks ago #

    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?

  6. Kejatz
    Member
    Posted 3 weeks ago #

    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.

Reply

You must log in to post.

About this Topic