gerobe
Member
Posted 3 months ago #
Hello,
since version 1.4 it does not work correctly in categories anymore.
I have a <div> wrapped around my custom tag, which is displayed correctly on the frontpage, but which is removed completely on the category pages. Earlier version had no problem with that and did not remove the <div> arround the link.
Greetings
Wolfgang
http://wordpress.org/extend/plugins/custom-more-link-complete/
gerobe
Member
Posted 3 months ago #
Just checked this again: not the div is removed, but the more-link template is not used at all on a category overview!! It's still the normal WP more-link!!
gerobe
Member
Posted 3 months ago #
Did some research why this is happening and found line 148 which says:
if ( !is_home() ) {return $content;}//run it only on main page, if it's run on category/archive/etc., don't change and exit
So categories are omitted explicitely! Why? I commented out this line and everything works great again and categories do show a modified more-link as intended.
What is this line for?
conualfy
Member
Posted 3 months ago #
@gerobe - please send me a private email (florin @@@@@drumliber.ro) to figure this out and release a fix.
PS: I guess you don't run TwentyTen/TwentyEleven themes.
conualfy
Member
Posted 3 months ago #
I have that check because TwentyTen and TwentyEleven themes run the code twice as these themes show the content using excerpts. Your theme probably echoes the page with the_content().
I finished working at Custom More Link Complete version 1.4.1 which completely changes the approach to edit links, making it simpler.
It should also fix the problem you mentioned.
Please check the update and let me know if it works as expected.
Thank you!
gerobe
Member
Posted 3 months ago #
I just installed version 1.4.1 and now everything is running great and the problem is fixed.
You're right, I don't use TwentyTen or TwentyEleven.
Thank you for fixing this!
conualfy
Member
Posted 3 months ago #
Good, glad it helped. The method of interacting with "read more" links was inherited from the older versions similar plugins had/have, it was time to get it right.
Thanks for the feedback, it was valuable!
BTW, it would help if you mark it as working and maybe star it :)
gerobe
Member
Posted 3 months ago #
Marked the new version as working :-)