• Resolved my_travelworld

    (@my_travelworld)


    Hi,

    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

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter my_travelworld

    (@my_travelworld)

    Does nobody have a solution? 🙁

    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.

    Thread Starter my_travelworld

    (@my_travelworld)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] YARPP on pages – how to insert manual code?’ is closed to new replies.