Ready to get started?Download WordPress


Allow PHP in Posts and Pages
[resolved] The proper syntax for the shortcode (2 posts)

  1. Bloke
    Posted 2 years ago #

    I am writing it this way. Is this correct because my page is blank and getting no errors.
    [php][php function=1][/php]

    I also tried [php function=1]

    In the code snippet box I left off the <?php
    It says all snippets automatically start with <?php so not sure what needs to be in the box. Do I need to use the title?


  2. Bloke
    Posted 2 years ago #

    I got it working. I had to debug it and figured my code would not work with PHP 5.2 only with 5.3. I also used [php function=1][/php] and it works.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.