I was just wondering what the recommended way of implementing custom PHP code in a single page was. Should I create a new page template or should I be adding a shortcode element to the builder? Is there any documentation on this?
Hey ryanmortier!
Thank you for using Enfold.
You can use this plugin to enable php codes on posts and pages: https://wordpress.org/plugins/insert-php/
Regards,
Ismael
I don’t really want to store my PHP in the database. That, and my script is a bit involved. It’s basically a class.
Hey!
A new page template or a shortcode would be the easiest. If its a full class then I would suggest creating a simple plugin that you can call with a shortcode or that creates the page template.
All documentation for that would be on the WordPress codex.
Best regards,
Devin
This can be closed, thank you.