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?
Hi bjconcan!
Please try using this plugin – https://wordpress.org/plugins/insert-php/
Best regards,
Yigit
Perfect, thanks!