- This topic has 2 replies, 2 voices, and was last updated 10 years, 10 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
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.
You can make your code conditional. Here is a tutorial I wrote to help with this. http://nickc.co/conditional-content
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/
© 2023 WPEngine, Inc.