WordPress.org

Support

Support » Plugins and Hacks » Hacks » Edit PHP code of the Visual Editor textbox

Edit PHP code of the Visual Editor textbox

  • I’m trying to add the following code to my Visual Editor so that it effects only that textbox and shows as a typical HTML placeholder containing text that disappears when you click on it:

    <div id="quote"><?php random_make (); ?></div>

    But I can’t seem to find any code for the Visual Editor, I’ve looked in functions.php but I must be missing it.

    Can anyone tell me where I can place this code so that I get my desired results?

    Regards,
    Liam.

  • The topic ‘Edit PHP code of the Visual Editor textbox’ is closed to new replies.
Skip to toolbar