• Resolved eddr

    (@eddr)


    Hi

    I’ve used this plugin many times and I was very content. Now I’m trying to run a PHP code (before – only HTML/JS/CSS). I can’t get any results. Tried to run
    echo "somthing"
    and it doesn’t do anything. HTML/JS/CSS do have effect.

    Do I need to do something in order for it to work?

    http://ww.wp.xz.cn/extend/plugins/my-shortcodes/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Cramer

    (@desertsnowman)

    Hi There,
    Which tab are you placing the php code in?
    The PHP tab is for making usable PHP functions for reuse. In this tab, you dont’t need to wrap code in <?php ?> just start the code.

    You can use PHP in the HTML tab, but this needs to be wrapped in <?php ?>. Code here you can use the functions you make in the PHP tab.

    Let me know if this helps.

    Thread Starter eddr

    (@eddr)

    yes, this helps. Thanks. Maybe you should add some small explanation.

    Thanks, great stuff. You can consider making it fully free and enable donations (-:

    Plugin Author David Cramer

    (@desertsnowman)

    WEll, donation are enabled and theres a link on the plugin page http://ww.wp.xz.cn/plugins/my-shortcodes/

    Also, take a look at the docs, its all explained there.
    http://docs.caldera.co.za/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘shortcode php does not run?’ is closed to new replies.