Use get_terms() to retrieve terms that match your search query like :
$termsResult = get_terms( 'CUSTOM_TAXONOMY_NAME', 'search=SEARCH_QUERY' );
where,
CUSTOM_TAXONOMY_NAME is your custom taxonomy and
SEARCH_QUERY is the string which you are using to search for terms.
Afterwards you can generate list like :
if ( ! empty( $termsResult ) && ! is_wp_error( $termsResult ) ){
echo '<ul>';
foreach ( $termsResult as $term ) {
echo '<li><a href="'.get_term_link( $term ).'">' . $term->name . '</a></li>';
}
echo '</ul>';
}
Related Posts:
- Extend WordPress search to include user search
- Unified search across separate WordPress installations
- Extending search query with additional $sentence value
- How to pass a search $_GET parameter to a new custom search page?
- WordPress 3.6, searchform.php problems
- Display posts from an author using search parameters (not author template/query_posts)
- Custom Permalinks Break Search Pagination
- How do I change WP search results order?
- Set minimum number of characters in the search
- search.php template not loading results
- Adding arg to search results page
- search only pages if on page
- Conditional tag search-no-results
- Search Issue in the theme
- How do I make search results include ONLY pages, no posts?
- Refine Search Results
- pre_get_posts and search query for admin
- Sitelinks Search Box in Google and urlencoded search string
- SQL query to get adjacent posts from search query
- How to specify multiple search columns for wp list table search
- Template Page Content Made Searchable
- WordPress search issue with searching html tags
- Search result by range?
- Change loop.php for empty search customization
- Advanced Search by minimum/maximum values
- Change query variable for wordpress search
- How to search in two different wordpress blogs by using a single searchform?
- How does WordPress know if a URL doesn’t exist?
- Highlight Search Results in Function.php
- Alphabetical search
- Search in Two Categories
- Custom Search Query running on every page
- Use search in fancybox
- Two Search Boxes: one all content, one only titles
- Keep query string in url after executing a serch
- How can I remove the search window?
- Search Everything & WP 3.7 update issues [closed]
- custom wp_dropdown_categories items in wordpress
- Customize search page
- Customise search page depending on result
- How do I use a block to display search results?
- How to make search include data from wp_postmeta?
- Use “search” in permalink?
- Can I change the default search behavior “OR search” to “AND search”?
- How to add re-captcha to wordpress search?
- Risk of sql injection for custom search form
- Filter post_type thumbnail in Search result
- Home page shows recent post, serps rank post within homepage
- How to set empty search to load homepage template and not index.php
- custom search results affected by _REQUEST set
- How to implement search suggestions into search bar?
- Modifying post content with the_post action hook
- Trying to remove plural ‘s’ from search Query but it’s just removing every letter of the end – what am I doing wrong? Thanks
- Blog search just returns to front page (not search results!)
- Why is this search form not submitting when button is clicked?
- Search within table?
- How to insert meta keyword to search result page
- Custom search Dashboard widget
- Disable character’s replace in search
- WordPress Search Form Issue | Misleading search URL. | Pointing to wrong URL
- Echoing home_url() returns current url in searchform.php
- Exclude posts with certain meta data from search results
- How to detect if the referer is 404 page?
- Remove Page Timestamp via functions.php so it doesn’t show in Google Search Result Description [closed]
- Use pre_get_posts to display search results by meta in specific order
- Prevent search query from taking place when using Google CSE?
- Site Title in my Search URL
- I want empty search returns to home page in my wordpress
- Prevent searches less than 4 characters
- Changing search terms results a 403 – dsIDXpress Pro plugin [closed]
- Search wordpress using three different drop down menus
- How to get search result as image rather than page
- Search results – 404 error after hitting enter
- Redirect wordpress search query if its a tag
- Is it possible to show subdomain posts in main domain search result?
- Replacing word in wordpress Search not working Properly
- How to add search box to table results in admin page [closed]
- How might I go about using the API to search for a user by email, but ensuring that it is an exact match?
- Add CPT to search results with pre_get_posts
- Replacing wordpress search with custom code
- Use WordPress search in external static website
- Change output URL Search module
- search for single meta_key with numeric array of meta values
- How to customize default wordpress search query
- Customizing Google’s Search box in WordPress [closed]
- Insert DIV container below 1st search result
- I’ve messed up the admin search functionality. Help!
- Extend search function with link to searched word
- How to exclude one post format from search result?
- Help with WordPress search
- Search for Author and Custom Post Type
- Relevanssi show only 1 result
- Search page isn’t returning any results
- how can I make the search return only single random correct result?
- Adding attributes to the core search block form
- Wp admin: I need search meta key from table wp_usermeta in screen custom post type
- search videos on divi builder
- Search results truncated
- Search keyword store in custom meta key
- Search results heading and counter not working – Oxygen Builder