Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #376839

    I know this is probably a basic WordPress question, but I’d like to add something like:

    <form action=” <?php echo site_url(); ?>/properties” method=”GET”>
    <input name=”location” type=”text” />
    <input name=”name” type=”text” />
    <input type=”submit” value=”Submit” />
    </form>

    into my page. In this case, I don’t want to hardwire the site_url() into my form since that will change.

    What am I doing wrong?

    #376842

    Hi bjconcan!

    Please try using this plugin – https://wordpress.org/plugins/insert-php/

    Best regards,
    Yigit

    #376866

    Perfect, thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How do I insert PHP into a page’ is closed to new replies.