The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] YARPP on pages - how to insert manual code? (4 posts)

  1. my_travelworld
    Posted 4 years ago #


    after some browsing through the net I realized that probably putting in a manual code into the page.php or functions.php is the only way I can use yarpp also on pages.
    I have figured out that I have to insert the code ""related_posts()" either into page.php or into functions.php (or both?), but I absolutely don't know how to do it as I have no clue from php. I know that I have to go to my theme (Adventure Journal) and then head on to the editor but both page.php and functions.php are quite long and for a non-PHP-speaker difficult to understand.

    So, my question is, can somebody tell me where (at which line / part of the file?) I have to insert exactly which code (only "related_posts()" or "related_pages()" or both or more than that)?

    This would help me a lot.
    Thanks in advance for your answers, every help is much appreciated.

    Regards, Chris


  2. my_travelworld
    Posted 4 years ago #

    Does nobody have a solution? :-(

  3. johnrendy
    Posted 4 years ago #

    Hi Chris,

    It's actually very simple.
    Go and find the single.php (this is the template / file where you would want to place the related_posts(), a page which shows the individual posts or when after you click read more )

    Just paste the <?php related_posts()?> near the bottom parts.
    You should know after you do some refresh to see if you had paste it in the correct line.

  4. my_travelworld
    Posted 4 years ago #

    Hi John,

    thx a lot for your answer.

    Even it was not totally correct fitting it helped me to figure out the solution. The most important thing from your post was the code and where to put in ... your advise is regarding to the related posts but what I was looking for was the related pages. But with your help I amended the code to <?php related_pages()?> and put it into page.php (middle/bottom) and that's it.

    It seems to work now.

    Thx again, Chris

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic