Plugin Author
Ajay
(@ajay)
I’ve got this on my list of TODOs. Still need to figure out a good way to implement this.
Have you seen any such implementation before?
Yes, wordpress related posts does this. But it does not do contextual related posts which is what I really need…. For now I by hand modified the core to use a priority of 20…. I tried a remove_filter, add_filter combo but that does not work very well….
Best regards,
Edward
Plugin Author
Ajay
(@ajay)
I can set the plugin to display the related posts last on the post by setting a higher priority like you do.
However, with so many plugins in place it’s a priority that differs from person to person.
What I would like to do is give the user the option to pick the priority
Plugin Author
Ajay
(@ajay)
What is the result of the remove_filter, add_filter combo?
I answered that question already, it does not work well, you have to know when things load to make it work. Look at ‘WordPress Related Posts’ plugin, it does what I asked about….
Plugin Author
Ajay
(@ajay)
I did look at it, but it doesn’t have a custom priority option, if I am not mistaken that a user can set.
Ah, I was looking at so many related posts plugins I did not remember correctly it was ‘Better Related Posts’
Best regards,
Edward
Plugin Author
Ajay
(@ajay)
Thanks I’ve found the code you mentioned. He uses classes instead of functions like in Contextual Related Posts. I’ll need to figure out how to cleanly adapt this for my plugin.