Custom More Link Complete
[resolved] Version 1.4: Does not work in categrories correctly (8 posts)

  1. gerobe
    Posted 3 years ago #


    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.



  2. gerobe
    Posted 3 years 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!!

  3. gerobe
    Posted 3 years 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?

  4. conualfy
    Plugin Author

    Posted 3 years 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.

  5. conualfy
    Plugin Author

    Posted 3 years 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!

  6. gerobe
    Posted 3 years 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!

  7. conualfy
    Plugin Author

    Posted 3 years 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 :)

  8. gerobe
    Posted 3 years ago #

    Marked the new version as working :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom More Link Complete
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic