Wordpress - Search by property name

I regularly get asked how to add searching by property name to the Jomres Search widget in Wordpress.

Due to how search has evolved over the years, the answer is slightly counter-intutive. To search by property name, or in fact any search term, be it in the description or another field, you need to enable "Searching by description"

 

Assuming that the search widget is installed and configured to be shown on the front page, the first thing  you need to do is enable search by description in the Integrated Search tab of site config :

integrated search tab in site configuration and location of description switch

 

Next, you will need to add the search by description input to the search.html file.

<div class="col-md-2">
        <div class="form-group">
            <label class="control-label" for="description">{JOMRES_SEARCH_DESCRIPTION_INFO}</label>
            {DESCRIPTION}
        </div>
    </div>

search.html is found in potentially 2 or more different places.

If you do not have the JR Leohtian theme installed, then Jomres is probably using the search.html file found here.

If, on the other hand, you're using the Leohtian theme, then look in \wp-content\themes\jr_leohtian_wp\html\com_jomres for a copy of search.html to modify.

 

These instructions are as valid for Joomla as for Wordpress but for some reason the bulk of the questions for this field come from WP users, hence the WP centric focus of this manual page.