WordPress.org

Ready to get started?Download WordPress

Forums

HTML editor corrupts tag on publishing (4 posts)

  1. alexandef
    Member
    Posted 1 year ago #

    In the HTML editor window for the post, I enter a quicktag <!--more-->. Then, press "Publish" or "Update" to push the change live.

    <!--more--> immediately changes to & lt;!--more--& gt; (I added spaces here between & and lt/gt to avoid automatic conversion in the post) in the editor window, and the post doesn't have a correct "more..." link, but rather a <!--more--> text in its body.

    I searched the documentation carefully and there's no answer on how to fix this issue. The environment was refreshed recently and I assume there are no changes in the_content() or the_excerpt() functions in the WordPress.

    Please help.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

    !--more--> immediately changes to <!--more--> in the editor window

    Can you clarify the difference between those two tags? Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    And why are you using an old version of WordPress?

  3. alexandef
    Member
    Posted 1 year ago #

    It converts < and > to their HTML code. We are using old WordPress because it's a production environment and management doesn't want any risk associated with upgrade.

    Changing theme is not an option (see above - production environment, so no sudden movements are tolerated).

    The same version works well in staging.

    The set of active plugins is the same in both cases, but staging has more inactive plugins than production.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    Nevertheless, you need to try the troubleshooting steps I suggested above.

Topic Closed

This topic has been closed to new replies.

About this Topic