Enter the PHP code in the “HTML” or “Text” tab (depending on which version of WordPress you’re using).
If you later go to the “Visual” tab and click the “Update” button, then yes it will turn > into > ; and < into < ;. Any & characters will also be converted to & ;
It’s what the Visual tab does – turns certain special characters into HTML entities to make them into visible characters.
If you need to update something with the Visual tab, then afterward you’ll need to go to the HTML or Text tab and fix the PHP code that had its >, <, &, or other special characters converted.
Will
dont we have another option for this. Because i have to change the > at 50 places in a single page. If i add a photo in visual tab, then i have to change > to > at 50 places. So………
It’s how wordpress works. If you use the Visual tab and click update, it will convert characters to they are visual.
An alternative may be to put the PHP script in a separate file, then use Insert PHP to include the file in your post or page.
Will