OK, So this is somewhat embarrassing and sorry for wasting everyone’s time. When I narrowed down that the issue was just with the products post_type I went and checked what version of Woocommerce was being used and found that it was way out of date. After updating all Woocommerce plugins to the latest versions the product search worked.
One of the first things to do when torubleshooting any issue with Woocommerce or WP in general is typically to ensure all plugins and WP are up to date. I’d like to say that because I did not develop this site and that someone else had been working on it initially that’s why I didn’t think of checking updates but there are really no excuses. I feel like an idiot!
Related Posts:
- Exclude a term of a taxonomy with a custom post type in a search
- Set meta_query only for specific post type
- Search in multiple specific post types
- Custom Search Template for Custom Post Types
- How to create a custom search for custom post type?
- Extending the search context in the admin list post screen
- Include custom taxonomy term in search
- Advanced search form with filters for custom taxonomies and custom fields
- Creating a search form for custom fields
- Searching multiple custom post types and pages
- AJAX search on post pages by custom post type
- How can I change the admin search posts fields?
- How to make a WP_Query search with custom post types?
- group search results by post type?
- Development of a WordPress Search Plugin – Best Practices
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Simple way to search custom-post types only
- Pushing a custom post type to the top of the search results
- Search multiple custom fields by using meta_query
- How do I Paginate Search Results for Custom Post Types?
- Custom post type admin search
- WordPress post sorting with AJAX
- Why have my custom post type searches stopped working after changing URLs / updating WordPress?
- Using standard search function with custom post type
- Search that will look in custom field, post title and post content
- Have different search results template depending of custom post type searched
- Returning search results by relevance, including Custom Post Types
- How to replicate some of Drupal Views functionality in WordPress?
- The right way to create a custom search page for complex custom post types
- Attach a Custom Post Type to a Woocommerc product as a variation or add-on [closed]
- Seperating Custom Post Search Results
- Exclude from search all custom posts which are NOT in a taxonomy term
- Search everything (posts, pages, tags, cpt, meta)
- Search Custom Post Type with all meta attached?
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- filter search result with custom post type meta key
- Custom search for custom post type, custom meta and search fields
- Include images from pages in wp search.php results in default wp search
- Separating Search Results By Post Type
- How Do I Use WP_Query to Run This Database Query as Search Result?
- How to solve suspected memory issue in custom WordPress loop?
- Custom Post Types: pretty search URLs and has_archive
- WordPress Admin Panel search posts with custom post meta values along with title
- Backend search; include CPT meta?
- Custom Search form not working in localhost
- Custom Search | Wrong output & question
- Limit search form to 4 custom post types only
- Group search results by post type, but hide post types with no results
- Search results ordered by custom post types are not grouped
- Is there An Input Checkbox Option That Works like `wp_dropdown_categories()` To Use In A WP Search Form?
- Search Post Title Only [duplicate]
- Query for posts from any post type but only add instock products
- How can I include meta box content when searching?
- Customize Search to only search current custom post type
- How to search from specific post type with tags?
- No results searching custom post type in admin panel
- Include different loop templates in search query
- WooCommerce – Show orders for a specific product ? [closed]
- custom search result page
- Search tags in CPTs
- How to search CPT’s by meta query from the admin dashboard?
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- get_terms won’t display product_cat or any other custom taxonomies when specified
- Customize Search Results for Custom Post Type
- multiple search forms and search results
- error in Advanced Search Form for Custom Post Types in WordPress array_key_exists() expects parameter 2to be array, string given
- Search Custom Post Type Custom Fields
- Custom Post Type not appearing in website search
- Woocommerce query specific product from specific category
- Custom Fields vs Separate Table
- Add custom post type archives to search results?
- CPT Meta Searching
- CPT Search Form with Taxonomy filter & Or
- Problem adding column to WC Subscription [closed]
- Keyword search limited to specific post type filtered by multiple custom taxonomies?
- How to filter search results by post type?
- How to create an advanced filter search?
- Custom search for custom post meta with pre_get_posts interferes with WP search
- How to search map address in custom post type?
- Custom search results page query, link permalink to post title while separating by post types
- Custom Search for Drafts in Custom Post Type
- Create custom post type on successful woocommerce order [closed]
- WooCommerce product search titles only
- Including Custom Meta with posts_where query
- how to get URL of media uploaded to WordPress via media_handle_sideload()
- I did group my search results by post type, but how can i give each of them its own order?
- How to display product subcategories into my custom post type single page
- custom post type Search returns No Results in admin panel
- Get post from custom post type order by two taxonomies
- Search Custom Post Type & Taxonomies
- Multiple meta_values in the pre_get_posts filter?
- How to order separated Custom Post Search results
- search also in taxonomy, tags and custom fields
- Custom post type search using $_SESSION and pre_get_posts
- How to stick custom post at the top in search results
- filter custom post type by meta key in dashboard
- Can I search only some of the fields of a custom post type?
- Custom Post Type And “fopen”
- Filter custom posts using auto populated dropdown selectors
- Make parts of your wordpress website completely built with data from external APIs?