Business Directory Search Form
Display a business directory search form on your Chamber website, by creating a page and inserting the following shortcode:
The page with the
[business_search] shortcode will display the search form. You can put the
[business_search] shortcode anywhere on the site (including a sidebar widget).
Next, create a separate page to display the search results using this shortcode:
You must use these two in conjunction, but on separate pages.
Add the required parameter – results_page=”name-of-results-page”, using the slug of your search results page, to your
For Example: If the title of your search results page is ‘Search Results’, then the slug is probably ‘search-results’, and the shortcode for your search form should look like this
Hint: To get the slug, of that page, you can edit the page, and right under the title, you will see the page’s URL. Part of the URL will be highlighted in yellow – that is the slug. Or, you can get the slug by going to the page, and finding the part of the URL that comes after the last “/”.
There is also a Business Directory Search widget. To use that widget, you also need to have a page with the
[business_search_results] shortcode in it.
Search Business by Name
Using the search form your website visitors can search your Directory by business category, keyword or business name. Keep in mind that if you have opted to ‘hide lapsed members‘ using the Member Manager plugin, members with overdue invoices will not appear in search pages.
Search Results per Page
The default number of search results shown is 5. You can change this to show more results per page or fewer results per page under Chamber Dashboard settings.