MyListing does not allow users to search for Listings using Custom Taxonomies within the Quick Search Bar by default. This guide will help you circumvent that.
Implementation
- Reference the Unlock Custom Taxonomies With MyListing Quick Search code snippet.
- Implement Code Snippet 1.
- Grab Code Snippet 2 and have it ready in your clipboard.
- Using an FTP application (I use FileZilla), browse to the following location within the MyListing Parent Theme: /wp-content/themes/my-listing/includes/src/queries.
- Copy the ‘quick-search.php’ file to your location workstation and edit it with your preferred text editor.
- Insert the contents of Code Snippet 2, just above the line that reads ‘if ( apply_filters( ‘mylisting/quicksearch/show-regions’, true ) === true ) {”.
- Save changes.
- Add the following folder structure to your MyListing Child Theme: /wp-content/themes/my-listing-child/includes/src/queries
- Copy the updated ‘quick-search.php’ to the folder you created in the previous step.
- Test.
Note: For a custom taxonomy to appear in Quick Search, at least one Listing (published) must use that particular taxonomy.
