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
- 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?
- 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
- Custom post type admin search
- Using standard search function with custom post type
- 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
- Search Post Title Only [duplicate]
- Query for posts from any post type but only add instock products
- Customize Search to only search current custom post type
- How to search from specific post type with tags?
- WooCommerce – Show orders for a specific product ? [closed]
- custom search result page
- How to search CPT’s by meta query from the admin dashboard?
- Customize Search Results for Custom Post Type
- multiple search forms and search results
- Custom Fields vs Separate Table
- How to create an advanced filter search?
- How to search map address in custom post type?
- Custom Search for Drafts in Custom Post Type
- Get post from custom post type order by two taxonomies
- Multiple meta_values in the pre_get_posts filter?
- How to order separated Custom Post Search results
- Custom post type search using $_SESSION and pre_get_posts
- How to stick custom post at the top in search results
- Can I search only some of the fields of a custom post type?
- Make parts of your wordpress website completely built with data from external APIs?
- Custom post type not showing in search result
- Manage custom post type in woocommerce /my-account/ page
- What to and how to proceed with CPT to make DB small and efficient?
- Auto Complete Search
- Display Woocommerce Orders for specific author [closed]
- Remotely search WordPress sites using xml-rpc
- BBPress Search results in WordPress search
- Limit Search to Post Type With Apostrophe return search not found
- Set Custom Post Type in Widget Settings for use in Widget
- Displaying and searching Custom Posts
- Search by tag name and category
- Advanced search form with filters for custom taxonomies
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- Different results between permalink and query var search
- How to let users choose where to search for posts?
- WordPress Custom Search by post_type
- What content types are shown at a search page?
- Search one custom post type ONLY, disable “all posts”
- Select2 AJAX and WP Query Returns ALL and does not filter
- search custom post type by custom fields on front end
- Custom Search | check multiple meta_value for search value
- Searching post types
- Get Terms from Custom Taxonomy and Current Post
- Limit search field to just search a custom post type with custom fields
- Redirecting search to specific templates with $_GET[“post_type”]
- Search custom type post
- How to have multiple search result pages in wordpress with taxonomy terms listed
- How to display related posts using the same taxonomy for custom types (WordPress, Pods, Woo)
- How to display custom field in product description?
- What’s the best way to do this: inquiry/ticket system?
- Creating a custom WP query for a Custom Post Type
- In the php, how can I have a category of a custom post type display?
- Search Function not searching correct custom_post_type even though post_type is defined in search args
- Change display of product price on product show page only
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- edit.php all post not working
- Custom Post type doesn’t appear in search results
- search results to show individual ACF fields from inside custom posts
- How to show link to product in custom fields?
- post_type incorrect for custom post type
- Live search by custom tag
- how to create custom taxonomy drop downs for parents and child
- WooThemes – Vendors / Bookings – Allow Vendors to manage resources
- CPT or Custom Table for Repository of Serial Numbers
- WP_Query with custom post type search showing all results every time
- Extensive search filtering and results->PDF in the front-end
- Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table
- Custom post type blog pagination conflict
- Multiple search template with separate stylesheets
- Advanced search form with filters for custom taxonomies and custom fields
- Searching for a single custom post type, buddypress
- How do I do this?: If custom post type exists, echo it, else do not
- WordPress search results
- Drop Down Filter with CPT as Options for Search Form
- Create a WordPress Database query to find users who purchased specific product through WooCommerce [closed]
- Searching Custom Posts content with JQuery
- Custom Field Search
- WordPress search results grouped by post type
- How do I provide a search form for a specific post type, that is capable of searching within custom fields of the specified CPT?