The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Bloke
    Posted 3 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 3 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

  • Allow PHP in Posts and Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.