Texiwill
Member
Posted 4 months ago #
Hello,
It would be very nice if there was an option to adjust the priority for the_content filter... Using the default 10, implies a collision with other plugins and this feature would allow us to adjustment placement at the end of a post page.
Thank you,
Edward
http://wordpress.org/extend/plugins/contextual-related-posts/
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?
Texiwill
Member
Posted 4 months ago #
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
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
What is the result of the remove_filter, add_filter combo?
Texiwill
Member
Posted 4 months ago #
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....
I did look at it, but it doesn't have a custom priority option, if I am not mistaken that a user can set.
Texiwill
Member
Posted 4 months ago #
Ah, I was looking at so many related posts plugins I did not remember correctly it was 'Better Related Posts'
Best regards,
Edward
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.