ctoynbee
Member
Posted 10 months 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
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.
ctoynbee
Member
Posted 10 months 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
ctoynbee
Member
Posted 10 months ago #
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.]
ctoynbee
Member
Posted 10 months ago #
That worked a treat.
Many thanks!
dale.reardon
Member
Posted 9 months 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.
dale.reardon
Member
Posted 9 months 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.
@dale.reardon, try making sure the "cross-relate posts and pages" option is on.
dale.reardon
Member
Posted 9 months 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.
ctoynbee
Member
Posted 9 months 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?
mister_r
Member
Posted 9 months 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
mister_r
Member
Posted 9 months ago #
yitwail
Member
Posted 9 months 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.
Thanks all for helping out. Hope that worked.