Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #21388

    I am trying to embed javascript webforms into my pages, this works however the visual page editor sometimes disables this code. To try and avoid this I was trying to use the short code exec PHP plugin to use a short code in the page instead. This plugin works well for adding contacts names etc. into the text, using this code:

    echo $_GET;

    however when I place this code in:

    echo ‘<script type=”text/javascript” src=””></script>’;

    The page displays the webform always at the top of the page and not were the short code has been placed. Can you please help me?



    Can you post a link to the webform page please? I’d like to investigate the source code.

    Best regards,



    One example would be this page where I am currently having to use the code directly instead of the PHP shortcode: (Purchase code hidden if logged out) -selling/


    Hi AMLAccount,

    Do you have an example where you’ve added in the code that shows the issue (and not the workaround you are doing to overcome the issue)?




    Yes, I have just created this page:

    This is the code:

    This is a test page and my webform should display under here:



    Can you try switching to one of the default wordpress themes and seeing if the same thing happens there? Either Twenty Eleven or Twenty Twelve will work for testing.




    I have switch to the 12 theme and the test page shows in the same way, with the webform at the top of the page above the text.


    In that case its an issue with the plugin that outputs the shortcode. You’ll need to talk to the developer of it and see if they can assist with a fix.




    OK – Thank you.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Short Code EXEC PHP always places code at the top of the page.’ is closed to new replies.