What should I do if the pre tag of the WordPress editor cannot be displayed after inserting the php code?

WordpressWhat should I do if the editor pre tag cannot be displayed after inserting the php code?

After adding the pre tag of the Wordpress editor, inserting the php code to save or update, there may be a problem that the display cannot be displayed.

There must be a blank line after the question mark at the beginning of <?php and cannot be continuous (because the WP editor will automatically filter)

1) Visual example:

<?
 php
  • When the WordPress editor switches to "Visual" mode,Chen WeiliangSuggestions in?Empty line after, so that after saving or updating, it will not automatically filter

2) Text code example:

<pre class="hl-main"><span class="hl-inlinetags"><?
 php
  • Switch to "Text" mode in the WordPress editor and paste the above text code into it.

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "What should I do if the pre tag of the WordPress editor cannot be displayed after inserting the php code? , to help you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-464.html

To unlock more hidden tricks🔑, welcome to join our Telegram channel!

If you like it, please share and like it! Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

Scroll to Top