Hi savia
I’m sorry but at this moment the plugin (0.2.1) only lets you exclude terms. If I understand you correctly you want the plugin to only use a specific set of tags to get the related posts for. Maybe register a custom taxonomy with only the tags you need?
http://codex.wordpress.org/Function_Reference/register_taxonomy
By adding a filter to wp_get_object_terms() (used by this plugin to get the tags for a post) you can include specific tags.
Try it with this in your theme’s functions.php:
http://pastebin.com/Zu6iS9yc
And change the tag IDs you want to include here:
// tag ids you want to include
$include_terms = array( 55, 34, 40 );
btw:
consider creating a child theme instead of editing your theme directly – if you upgrade the theme all your modifications will be lost.
Hi. i used your plugin..but its not working…n i don’t want to use it as sidebar.. so please tell me how can i use it on POST PAGE (single.php). and what i exactly want . is , i want to show only those post, that i am tagging with a specific post.. Or if you can tell me the solution without using plugin, as i found u in another place discussing about related post with the PHP code. Also no problem if it show only tags
Waiting for your reply
Thanks in advance
Hi ashutosh_dixit
Hi. i used your plugin..but its not working
What part of it isn’t working? Please explain some more.
To have related posts in the post content you can use the shortcode:
https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#shortcode
i want to show only those post, that i am tagging with a specific post
How are you tagging posts? Please explain some more.
Very much thanks for fast reply, Sir mainly what i want. I have post and few post are related to each other. So whenever user clicks on a post it should also show him those related post to which i mentioned them by tagging post to that particular post. and sir related to “what part of it not working ” n sir as i mentioned i don’t want to use this plugin as a sidebar, so please tell me about PHP code so i can put and can get my problem resolved….
And sir about tagging of post , so sir in post there is option for tags,so i tags some post names from there
Your help will be greatful for me
Thanks in advance