I'm using TinyMCE Advanced and SyntaxHighliter plugins on my WordPress install.
Why does the editor change my inserted code, from:
[php]
<?php
/**
echo('code');
/**/
[/php]
to:
[php]
<!--?php <br ?-->/**
echo('code');
/**/
[/php]
|
|
|
I suggest you to use
And:
Wordpress by default comments out php tags. |
|||||||
|
|
You can use this filter on your theme functions.php
This will remove extra P and line brake from short-code. More details will found here http://dynamicweblab.com/2012/10/removing-extra-p-and-line-breaks-from-shortcodes-in-wordpress/ |
|||
|
|