Support » Plugin: PHP Code for posts » Instructions where?

  • I would like to know all the features of the plugin before installing. Is there a manual or instructions somewhere? I’ve read the readme.txt file but it doesn’t describe all the shortcodes, how they can be used and all the parameters that they accept. Where can I find this information.
    Also, I am hoping to use this plugin to replace one that has broken. All my existing code is straight PHP sandwiched between [php][/php] shortcodes. Will these work as-is, or will they need to be recoded with this plugin?
    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author Jamie Fraser



    In my experience WordPress likes to break code placed between tags by adding random characters and breaks.

    This plugin uses saved snippets to skip this, you place your code into a snippet on the admin page, which you can then embed onto posts and pages using [php snippet=x]

    This is an easier solution than having it directly in the post, and allows the use of the same code in multiple places using just one editing screen.

    You can pass parameters to each shortcode using param on the shortcode. Which gets expanded into a $_parameters array variable for your code to use.

    I hope this clears things up for you!

Viewing 1 replies (of 1 total)
  • The topic ‘Instructions where?’ is closed to new replies.