Hi leahzero,
No, the example code above will not make the “more link modifier” plugins compatible with ‘read more right here’. It will only remove the “#more-[postId]” section of your content link (which, if I remember right, was the only difference between your links and the default WP links).
I don’t think it will ever be compatible with the other plugins (at least the ones I found).
I looked at their code again and realized that the problem isn’t restricted to their modifying the link using the ‘the_content’ filter instead of the ‘the_content_more_link’ filter. The real heart of the matter is that they all simple replace text instead of inserting new text in the string. (I realize the text below is more than you’re probably interested in, but I’m just adding it as future reference for whomever stumbles across this thread)
———————————————————-
So as an example, here’s what’s happening:
WP gets the entirety of the post content and checks to see if a ‘more link’ is required. If so, it constructs that link and passes it through the ‘the_content_more_link’ filter.
If no filters are there, the result is the default WP version, which might look something like this:
<a href="https://yoursite.comz/2010/02/15/hello-world/#more-1" class="more-link">(more...)</a>
The next version of ‘read more right here’ adds a filter, and inserts a custom class to the link. So what you’ll get is this:
<a href="https://yoursite.comz/2010/02/15/hello-world/#more-1" class="rmrh-postId-1 more-link">(more...)</a>
(notice ‘rmrh-postId-1’ in front of the ‘more-link’)
WP then takes the post content, which now has the ‘more link’, and passes it through the ‘the_content’ filter. This is where the other plugins take that content and replace the above link with whatever has been set as the replacement.
While the “#more-1” section of the link is removed (like you might want), the ‘rmrh-postId-1’ class is also removed. It doesn’t matter what might be there, the entire ‘class=xxxxxx’ section is going to be replaced with either the default or something you provided.
This would potentially be incompatible with any other plugin that worked on the ‘more-link’.
———————————————————-
Again, the code I wrote above is to simple remove the ‘#more-[post-id]’ part of the link. When I get RMRH updated, you should be able to
- deactivate the other plugin
- activate ‘read more right here’
- paste that code into your theme’s ‘functions.php’ file
Hopefully you’ll notice an update to RMRH sometime in the next day or two. After that happens, try the above and let me know what happens.