kathrynmichaud Posted June 5, 2014 Share Posted June 5, 2014 Hi - I'm using the WP Job Boards plugin for Wordpress. I've been given this code to create a quick search form to place in a widget. I've tried to paste the code in a sidebar widget and apparently after somebody inputs the keyword and location they should be sent to the results page which will show their results, however, it's not doing that, just showing me a 'page cannot be found' result. Can anybody help me out with correcting the code? <form action="<?php esc_attr_e(wpjb_link_to("http://www.littlefoxwebdesign.co.uk/etsgroup/jobs")) ?>" method="GET"> Keyword: <input type="text" name="query" value="" /><br/> Location: <input type="text" name="location" value="" /></br/> <input type="submit" value="Search" /> </form> Thank you! Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted June 5, 2014 Share Posted June 5, 2014 (edited) Is the widget you are using capable of parsing php code? You can try something like this and the code below https://wordpress.org/plugins/php-text-widget/ <form action="<?php esc_attr_e(wpjb_link_to("http://www.littlefoxwebdesign.co.uk/etsgroup/jobs"));?>" method="GET"> Keyword: <input type="text" name="query" value="" /><br/> Location: <input type="text" name="location" value="" /></br/> <input type="submit" value="Search" /> </form> Edited June 5, 2014 by QuickOldCar Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted June 6, 2014 Share Posted June 6, 2014 When viewing the page in your browser, have you looked at the source code for the page? Does it look like the value for action attribute was interpreted correctly? Quote Link to comment Share on other sites More sharing options...
QuickOldCar Posted June 6, 2014 Share Posted June 6, 2014 When viewing the page in your browser, have you looked at the source code for the page? Does it look like the value for action attribute was interpreted correctly? It shows as <div class="textwidget"><form action="<?php esc_attr_e(wpjb_link_to("search")) ?>" method="GET"> so not parsing the php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.