WordPress.org

Ready to get started?Download WordPress

Forums

How can I add php into quicktags.js? (1 post)

  1. delFUEGO
    Member
    Posted 8 years ago #

    Im trying to add this quicktag in my quicktags.js file...

    edButtons[edButtons.length] = new edButton('ed_home'
    ,'Home'
    ,'<phpcode><?php echo get_settings('home'); ?>'
    ,'</phpcode>'
    ,''
    );

    ...but when I upload the file, all buttons from the quicktags in my admin panel dissapears. I've noticed that this happens only if I put php code. [b]Why is that and how can I solve it?[/b]

    (WordPress 1.5.2)
    (PHP Exec 1.7)

    PS: Im triyng to add this quicktag because I need to add images to a special page that I move from one parent page to another from time to time. Is there a better way of doing this?

Topic Closed

This topic has been closed to new replies.

About this Topic