Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #319346

    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?

    #319577

    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

    #319862

    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.

    #320252

    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

    #327350

    This can be closed, thank you.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘I need to use custom PHP code in a page, what is the recommended way to do this?’ is closed to new replies.