• Resolved Belmont

    (@belmont)


    Hey Folks,

    Im having some problems using php inside my WP pages and posts, ive installed the run php hack and it doesnt appear to have resolved the issues so figured id start a post.

    What im trying to do is include a link such as this..

    https://www.domain.com/?<?php echo “$QUERY_STRING”; ?>

    Inside my posts and/or the page template itself but WP seems to be stripping off the end of the php query.

    Any idea how i can get this to work?

    TIA for any help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Belmont

    (@belmont)

    As you can from the above link, thats EXACTLY whats happening in my WP blog LOL

    McShelby

    (@mcshelby)

    You can try my Exec PHP plugin. I wrote it specifically to have a more advanced quote handling than the other known PHP plugins.

    Thread Starter Belmont

    (@belmont)

    I have that plugin installed and it doesnt work ??

    McShelby

    (@mcshelby)

    You said, you’ve installed the run php hack. So which one did you really installed. Is there a link to see the outcome?

    Thread Starter Belmont

    (@belmont)

    Ive installed them both.

    You can see whats happening in the link i posted above.

    But you can also see it at https://www.hardcorepride.com too.

    Thread Starter Belmont

    (@belmont)

    If you click on this link to go to the site..

    https://www.hardcorepride.com/?1234

    What i want is for the ?1234 part to carry across to the url on the page, in normal php/html pages it works fine just not in WP or any of the other 25 blogs ive installed trying to get it to work ??

    McShelby

    (@mcshelby)

    You may want to try this:

    <?php echo $_SERVER["QUERY_STRING"]; ?>

    Thread Starter Belmont

    (@belmont)

    Excellent thanks so much for the help ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PHP Query Question’ is closed to new replies.