Skip to main content

Include php / edit file template

Comments

5 comments

  • Permanently deleted user

    Hello,

    Thank you for contacting us.

    You can't add a PHP code directly to the editor, but you can add a shortcode element with this code in the editor.

    Best regards, Nelea.

    0
  • Infofuturo García García

    Hi,

    So shortcode element works for shortcodes, html, javascript and php?

    Thanks.

    0
  • Permanently deleted user

    Hello,

    The Shortcode element is meant for pasting shortcodes. Please use the Embed element for embedding HTML and JavaScript code.

    Regards, Nelea.

    0
  • Infofuturo García García

    Hi Nelea,

    But what i need is to add PHP code, not HTML or JS.

    0
  • KC George

    Hi 

    As mentioned above, WordPress doesn’t allow you to run PHP code in a post or page. However you can try this work around.

    1. Install 'Insert PHP Code Snippet' plugin.
    2. Add your PHP code to the plugin
    3. Paste its shortcode into the Brizy Shortcode element and see if it works  
    0

Please sign in to leave a comment.