Forums

[resolved] Related posts plugin assistance... (4 posts)

  1. amits
    Member
    Posted 4 years ago #

    Hi All,

    Bit a techy question...

    I've got wordpress2.5 installed and I've just installed and activated a 'related posts' plugin. On the installation instructions it also says I need to do one more step which is:

    3. Place <?php wp_related_posts(); ?> in your templates

    Can anyone explain to me what exactly I need to do and where I need to put it?

    In my theme I've got my page template and my main index template...do I insert the code there and if so where?

    Many thanks!

  2. Rok
    Member
    Posted 4 years ago #

    All you've to do is insert following code in your desired template file to display "related posts". Majority of bloggers display related posts at the post end. In this case, you'll have to edit "signle.php" (if your theme uses it to display full post) or "index.php" and add the code ad the desired location.

    <?php wp_related_posts(); ?>

  3. amits
    Member
    Posted 4 years ago #

    Hi Rok,

    Thanks for your response, I thought that was the case and I did actually try that but it didn't seem to work, or atleast that is, I didn't see any related posts come up when I did a test post.

    Can you give me an example of where I should put it?

    Many thanks

  4. amits
    Member
    Posted 4 years ago #

    Ignore my last message, I've got it working now, thanks again for your help! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags