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

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

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

scroll to top