WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Using YARPP on pages (18 posts)

  1. ctoynbee
    Member
    Posted 3 years ago #

    Hi,

    Great plugin by the way!

    I have a quick question. Is it possible to enable the YARRP plugin to work on pages.

    When I'm in my admin the related posts box doesnt appear on the edit page screen.

    I'm using wordpress 3.2.1 and YARRP 3.3.1.

    Many thanks,

    Chris

  2. If you are comfortable with PHP, if I'm reading this right, it looks like you can do that via the manual installation option:

    http://mitcho.com/code/yarpp/manual-installation/

    You could try it and see if it works - preferably on a test install. :-)

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Indeed. Adding PHP code to your theme files would be required. Thanks @zoonini.

  4. ctoynbee
    Member
    Posted 3 years ago #

    Hi,

    thanks for the reply. Just so we are clear I'm not trying to show the related posts on the front (public end).

    I'm trying to show the related posts that appears on the Edit Post screen in the admin area e.g. wp-admin/post.php?post=361&action=edit

    On this page there is a box that shows the related posts that have been assigned.
    No such box appears on the edit pages screen.

    The related_post function are already embedded in my theme for the front end views.

    Any ideas?

    Cheers,

    Chris

  5. ctoynbee
    Member
    Posted 3 years ago #

    Anyone else had any thoughts on this?

  6. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Try this code, like in your theme's functions.php:

    add_meta_box( 'yarpp_relatedposts', __( 'Related Posts' , 'yarpp'), 'yarpp_metabox', 'page', 'normal' );

    [Please post code snippets between backticks or use the code button.]

  7. ctoynbee
    Member
    Posted 3 years ago #

    That worked a treat.

    Many thanks!

  8. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Great!

  9. dale.reardon
    Member
    Posted 3 years ago #

    Hi,

    I want to have related posts/pages displayed on pages. I don't mind editing the template file but even after reading the advanced manual install page I'm not sure of the precise PHP code to insert into the file.

    Can you tell me the precise PHP code to enter to display related entries?
    Thanks.

  10. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    related_posts()

  11. dale.reardon
    Member
    Posted 3 years ago #

    Hi,

    I have the plugin working perfectly on posts on my blog and it is displaying related posts and pages just like meant to.

    I have now added the code to my pages but it says "no related posts" on all pages and there are certainly related posts and pages.

    I lowered the threshold score but still no luck.

    Any idea what could be wrong?

    Dale.

  12. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    @dale.reardon, try making sure the "cross-relate posts and pages" option is on.

  13. dale.reardon
    Member
    Posted 3 years ago #

    Hi, Yes I have the cross relate posts and pages checked. It is displaying pages on posts but just won't display anything on pages.

    Dale.

  14. ctoynbee
    Member
    Posted 3 years ago #

    Hi Dale,

    Just to check but you do have content on your pages that would relate? Try setting up a test page that has exactly the same words as another page?

    Is the plugin searching all the content fields e.g. title, content etc?

  15. mister_r
    Member
    Posted 3 years ago #

    Hi, Mitcho.

    Excuse me but where is "cross-relate posts and pages" option? I don't have such on plugin settings page.

    I can't get related posts and/or pages displayed on my pages :(

    I tried everything offered by you and other members here:
    - turned on/off "Automatically display related posts" option;
    - inserted related_posts(), related_pages() and related_entries() functions into my theme template;
    - even created page with the same content as one I was observing.

    I suppose I have the same problem as dale.reardon.

    What can you offer? Thanx.

    Regards,
    Roman

  16. mister_r
    Member
    Posted 2 years ago #

    Any ideas?

  17. yitwail
    Member
    Posted 2 years ago #

    mister_r,

    click on Screen Options at the top of the page, then check "Relatedness" options to get the "cross-relate posts and pages" option. This should be in the FAQs or something.

  18. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks all for helping out. Hope that worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic