Join

Unlock Custom Taxonomies Within MyListing Quick Search

  • Guides reflect how I’m currently using the solution for myself and my clients. 
  • If I don’t cover a specific feature, it implies I’m not using it.
  • If I don’t cover a specific setting, it implies the defaults are acceptable or the options are obvious.

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

  1. Reference the Unlock Custom Taxonomies With MyListing Quick Search code snippet.
  2. Implement Code Snippet 1.
  3. Grab Code Snippet 2 and have it ready in your clipboard.
  4. 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.
  5. Copy the ‘quick-search.php’ file to your location workstation and edit it with your preferred text editor.
  6. Insert the contents of Code Snippet 2, just above the line that reads ‘if ( apply_filters( ‘mylisting/quicksearch/show-regions’, true ) === true ) {”.
  7. Save changes.
  8. Add the following folder structure to your MyListing Child Theme: /wp-content/themes/my-listing-child/includes/src/queries
  9. Copy the updated ‘quick-search.php’ to the folder you created in the previous step.
  10. Test.

Note: For a custom taxonomy to appear in Quick Search, at least one Listing (published) must use that particular taxonomy.

Video Tutorial

Youtube video