How to execute PHP on a single page

Community Forums Forums Design Tips and Tricks How to execute PHP on a single page

This topic is: not resolved

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Redwood 1 year, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1097

    Redwood
    Participant

    I use Simple Hooks to successfully run PHP scripts site-wide. On non Genesis sites I can use any of the various WordPress PHP plugins to execute PHP in short code. Trying to run one of these plugins within Genesis always leads to an error so I would like some suggestions for how I might run PHP on a single page within Genesis.

    #1115

    nickthegeek
    Keymaster
    Post count: 751

    Redwood,

    You can make your code conditional. Here is a tutorial I wrote to help with this. http://nickc.co/conditional-content

    #1131

    Redwood
    Participant

    Thank you Nick. I also found this tutorial on making text widgets able to execute PHP very useful: http://www.binaryturf.com/php-text-widget-php-wordpress-text-widget/

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

You must be logged in to reply to this topic.