• Resolved bashabi

    (@bashabi)


    I am sorry if I have posted in the wrong section. I neither did find the right section to post this topic nor found how to create topic in other section. I hope you will help me to solve this problem.

    My website had a older version of wordpress. Recently I upgraded it to the latest version. After that my php code what I write in the editor is keep getting disabled.

    The old page which has php code in it still works. Although when I I open the page editor I can see the php codes are disabled. And if I try to save that it stops working. those lines written in php. But if I leave the editor section without saving those line works. So i cannot update those page. And also I cannot create new page with php code in it.

    if I write

    <?php echo $c; ?>

    It converted into

    <!--?php echo $c; ?-->

    Plugin Exec-PHP is installed. But it replicates the same problem without installing the plugin.

    I have the same type of website in previous version. Where same type of PHP code works.Current WordPress Version 5.0.3 . I upgraded it recently . and the problem occurred after that.

    What canI do to fix this.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Try installing the plugin “classic editor”. If that works, great. HOWEVER, putting PHP inline is a really, really terrible idea.

    Thread Starter bashabi

    (@bashabi)

    Thank you thats resolved the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Php codes are getting disabled in the editor after upgraded into latest version’ is closed to new replies.