I found an answer here, but it is treated as if I wanted a custom post type of a theme, in my case I created it as a Plugin, someone would have a light there of how I can create a search within a custom post type but that is Inside a plugin?
Related Posts:
- Include custom taxonomy term in search
- 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?
- 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
- How do I Paginate Search Results for Custom Post Types?
- Search that will look in custom field, post title and post content
- Returning search results by relevance, including Custom Post Types
- How to replicate some of Drupal Views functionality in WordPress?
- 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)
- 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
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Custom Post Types: pretty search URLs and has_archive
- Search Post Title Only [duplicate]
- No results searching custom post type in admin panel
- custom search result page
- Building an Advanced Search (text, tags, category, custom fields) – Getting the wrong SQL query
- 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 Fields vs Separate Table
- Keyword search limited to specific post type filtered by multiple custom taxonomies?
- How to search map address in custom post type?
- Custom Search for Drafts in Custom Post Type
- WooCommerce product search titles only
- custom post type Search returns No Results in admin panel
- Search Custom Post Type & 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
- filter custom post type by meta key in dashboard
- 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?
- WordPress sort search results by custom order
- Custom post type not showing in search result
- What to and how to proceed with CPT to make DB small and efficient?
- Pretty URL for custom search for custom post type
- Add post location with mile radius allowing search
- Auto Complete Search
- Remotely search WordPress sites using xml-rpc
- Limit Search to Post Type With Apostrophe return search not found
- Search filter triggered & sort by custom post type
- Set Custom Post Type in Widget Settings for use in Widget
- Displaying and searching Custom Posts
- Searching Custom Fields
- dropdowboxes with pre-selected custom fields optios that filters the results according seach needs
- How to let users choose where to search for posts?
- Can NOT search my custom post type?
- Custom post_type search pages
- Pagination Error : Duplicate argument being outputted
- Custom Empty Results page for my Custom Post Type
- Select2 AJAX and WP Query Returns ALL and does not filter
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- Filtering custom posts by custom fields (ACF) [closed]
- Searching post types
- Search CPT Title AND Meta
- Building a Data Intensive Website with WordPress
- Display future posts in search
- Modifying search results based on post_type
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Is it possible to get the specific content on the search page?
- Search for custom field input of a custom post type in ajax live search
- Search only one custom post type
- Query first and last name from custom post type
- Custom search for a custom post type in WordPress
- Advanced search form with multiple custom fields
- Search in multiple specific post types
- I can not display search template created from a post type custom
- Search custom post type result in same template page
- Search facility with directories
- Create Second Search Page Only for Custom Post Type
- custom search form for custom post
- Custom post url in search.php isn’t the correct rewrited url
- Conditional posts in WP_query for search
- Manually build WP_Query
- Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table
- pre_get_posts not firing at all
- Custom post type blog pagination conflict
- Diffrent search templates for different post types
- Problem with custom post type search
- admin search of pages returns custom post types
- Why does ‘exclude_from_search’ exclude a custom post type from WP_Query?
- Custom Field Search
- Custom post archive with search, is_search() is false?
- Group search results by post type, but having a unique heading for each section?
- How to exclude html tags and class on search
- Multiple search forms and respective results page templates?
- Search and filter terms of a custom post type only and display results
- Exclude multiple custom post types from search
- How do I create a custom search function to only show contact information if they search for an exact unique identifier?