Viewing 4 replies - 1 through 4 (of 4 total)
  • It works fine with includes. You’re not calling it right.

    1. Save your html as a php file
    2. Upload the search.php file to a directory under wp-content. I called mine custom.
    3. Create a code snippet in the plugin settings screen of the following code:

    include_once(‘wp-content/custom/search.php’);

    4. Insert [php function=1] in the post or page where you want the include.

    That’s it!

    Dexter800

    (@punxsutawney-phil)

    Great! It does work! thank you.

    Davell87

    (@davell87)

    This is not working for me. I am in debug mode and the include will get the first line of code, but it stops after that. The error messages are coming from the plugin files them selves.

    https://www.propertyboss.net/ClientCentral3.0/help-requests/

    I will have that up rendering the errors until I get it fixed.

    Thanks

    Victor,
    I just wanted to say thank you. You saved me hours on this one bro. Works great. I wish there was better instruction on how to use the snippet section, I probably would have had this done a long time ago.

    MJ

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Allow PHP in Posts and Pages] does this not work with includes?’ is closed to new replies.