Related Entries Plugin After Content

Discussion in 'Blogging' started by Inersha, Mar 2, 2008.

  1. #1
    Hey Guys,

    Recently been sorting out the Related Entries plugin, which looks pretty good.

    But how do I get the related entries to show after each article, rather than sticking it in the sidebar?

    Is it possible?

    Thanks,
    Greg
     
    Inersha, Mar 2, 2008 IP
  2. walkere

    walkere Active Member

    Messages:
    112
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    From the documentation on the site that you provided, it looks like you call the plugin with the function related_posts().

    If you want to place it inside your template, then insert that line of PHP in the proper template file.

    To place it at the end of an individual post, go to the template file single.php. You should see a section that outputs the article content followed by a section that outputs the comments.

    Insert the line...

    <?php related_posts(); ?>
    PHP:
    in the template where you want it to appear. Probably between the comments and the content, I would think.

    Good luck,
    - Walkere
     
    walkere, Mar 2, 2008 IP
  3. Inersha

    Inersha Active Member

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Awesome, thanks.

    I threw it above the comments part and it looks great.

    Thanks for your help.
     
    Inersha, Mar 2, 2008 IP