WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Bloke
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/

  2. Bloke
    Member
    Posted 1 year 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

Tags

No tags yet.