Support » Plugin: Yet Another Related Posts Plugin (YARPP) » Using YARPP on pages

  • Resolved ctoynbee

    (@ctoynbee)


    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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Moderator Kathryn

    (@zoonini)

    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. 🙂

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

    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

    Anyone else had any thoughts on this?

    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.]

    That worked a treat.

    Many thanks!

    Great!

    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.

    related_posts()

    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.

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

    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.

    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?

    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

    Any ideas?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Using YARPP on pages’ is closed to new replies.