It sounds like you’re looking for the get_terms()
function that’s a wrapper for WP_Term_Query
.
There you can e.g. use the name__like
, description__like
or search
parameters.
Example:
Here’s what kind of WHERE
query they generate:
'name__like' => 'hout' >>> (t.name LIKE '%hout%')
'description__like' => 'hout' >>> tt.description LIKE '%hout%'
'search' => 'hout' >>> (t.name LIKE '%hout%') OR (t.slug LIKE '%hout%')
Related Posts:
- How Do I Merge Categories With phpMyAdmin
- Disallow categories from this MySQL query
- get_the_category and echo out link to child-most/deepest category
- How to get related tags based on a category?
- How Do I Delete WordPress Posts Older Than 400 Days, From A WordPress Category
- Show Posts via cat+cat in URL that are in both Categories doesn’t work
- Issue with WordPress category search
- how to get postmeta info based on multiple categories?
- WordPress Multiple Category Search
- is_category() in pre_get_posts strange error
- Exclude categories from search query
- Rearranging posts based on categories
- Search and replace text across all posts
- Sticky posts on home page, search, tag and archives without plugin
- Create product category and keyword search form in woocommerce? [closed]
- Fulltext search in posts sorted by relevancy
- How to query all posts of a specific category, and any other category combination
- is_category in pre_get_posts results in php notices
- Query the Loop without breaking it
- How to show empty category in admin menus search
- How to Check if a Child Category is Being Queried
- How to select product category while adding new product in woocommerce? [closed]
- How do I get the total number of categories in a list of search results?
- Category Search functionality on category metabox (wordpress admin)
- Search by word, category, tag, author
- Filtering search results
- Category archive page – loop through posts of certain tag (with pagination) – pre_get_posts
- If newest post of category is newest post in general, skip first post of category
- How to find exact match for search term in WP_Query? What is the additional string added in LIKE query in WP_Query?
- Multiple Category Search
- Accessing WordPress MySQL Database via Data Connection in Visual Studio 2010 using C#
- How to display posts under a specific subcategory of a given category
- Change the category of all posts in it
- How to run select query of post with category and tags for API?
- I need to create a search form that will display search results from specific category
- Search Posts / Pages with multiple options?
- How to query post like normal search would do. within search.php page
- query in category.php repeats itself
- Display posts separated by Category in Author’s page
- WordPress search only showing a few posts
- Search in custom post type AND in pages with category
- Category param redirect to post type archive
- Select posts by name and category per REST API
- How do I toggle pagination on/off in search results and category listings via a link?
- How to get latest posts from each category in regular order
- Searching With Apostrophe
- Refine/Filter the Search Results by Category
- Drop posts from categories in MySql
- category pagination got broken suddenly
- Show matching categories in search page
- How to query categories with Advanced Custom Fields?
- Where and when does WordPress invoke routes
- Can Categories be used to hack a Multisite-like setup w/ a single MySql db?
- Keyword search in multiple categories
- Get URL Category Name By ID
- Exclude category from query
- Overriding default calendar to show posts from a category
- How to list all categories and their IDs using SQL query?
- Ideas how to search & replace post_content when string contains a newline?
- function query_posts disabling current_page_menu class
- Group search results by category
- Using if statement in index.php instead of creating separate template files
- Search form options group categories
- custom query for both category and pages using global $wpdb;
- Get categories of queried posts
- Query from multiple category (and)
- How to display posts from specific category using get_option function?
- SQL query to get posts from multiple categories but not in a category
- WordPress: Using the category slug get the category ID using mysql query
- How to add categories using mysql
- How to filter post from categories only if the posts appears in one of them, not the other?
- WordPress Default Category and Custom Taxonomy Selected Attribute not Working After Searched in wp_dropdown_categories Array
- Automatically adding tags and categories into Post Excerpt for searching
- Return all Tags and Categories in Separate List
- How do I merge WooCommerce categories with the same name?
- Get category from slug list
- Search Replace Database ONLY for posts of certain category?
- Querying posts from two different categories while looping inside another loop
- get_terms sort order with child categories of varying depth
- How to make MySQL search queries with quotes
- Too many categories drastically slow down my website
- How to get posts from many categories using WP_Query
- Is it possible to query the result of a query?
- 404 error when i try to search by category or by tag
- Make related posts display first in search result
- show posts found in multiple categories via category_name query string?
- Several loop in search result
- Category slug in in loop always the same?
- display certain category on custom template page
- Detecting top parent category fails on home page
- How to use Greek characters/letters in a query?
- Displaying posts by year
- wordpress category.php query for featured news item, broken pagination and repeating posts
- finding out the top 5 source ( source is a custom taxonomy ), in a given category
- Search functionality with multiple categories
- Query posts that have all the specified tags
- How to show posts of a specific category
- Remove “All categories” from searchbar dropdown
- Advanced Search – Is this possible?
- Display different sidebar based on search results from one category