I’m assuming you’ve used the method in the question linked to and are using the restrict_manage_posts
filter.
add_action( 'restrict_manage_posts', 'my_search_box' );
function my_search_box() {
// only add search box on desired custom post_type listings
global $typenow;
if ($typenow == 'product') {
//On custom post type 'product' admin page.
//Add code for search box here
}
}
Related Posts:
- search suggest – filter post type
- filter search result with custom post type meta key
- Used with meta_query in query_posts works slowly
- CPT Meta Searching
- WooCommerce product search titles only
- Setting proper query for multiple custom admin filters
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Search filter triggered & sort by custom post type
- filter search custom field query
- How to let users choose where to search for posts?
- find custom post type post by searching its custom field with my string
- Modifying search results based on post_type
- Help Adding filter to Add Media button for custom post type
- Conditional posts in WP_query for search
- Custom Search Template for Custom Post Types
- Diffrent search templates for different post types
- add_filter > posts_where works partially
- Meta_query question
- How can I remove the “Add New” button in my custom post type?
- How can I change the admin search posts fields?
- Adding Custom Post Type Counts to the Dashboard
- Development of a WordPress Search Plugin – Best Practices
- How to remove Filters from post admin page?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How can I filter posts by post_parent in the admin?
- How do I filter the excerpt metabox description in admin?
- WP_Query orderby custom field then post_date in one query
- How do I Filter Custom Post Type by Custom Taxonomy in the newest WordPress RESTful API?
- Filtering a WP_Query meta_query by numeric values isn’t working
- Filter by custom Field for Custom post type Admin Listing
- Remove wpautop from all posts/pages except my custom post type
- Remove date and category filters when editing custom post types
- Taxonomy terms with edit/filter link in wp-admin, in the list of custom posts
- Search everything (posts, pages, tags, cpt, meta)
- Filter get_categories() for taxonomy term in WordPress
- Using Query Posts With Multiple Post Types And A Taxonomy
- Multiple post types in archives (filter?)
- WordPress Search Custom Meta Field Only
- Search Post Title Only [duplicate]
- Can’t sort order of wp_query with 2 meta keys
- Highlight nav menu terms
- Want to filter only parent post in admin area
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- How can I show some description in the “All Posts” view of a custom post type in Dashboard?
- multiple search forms and search results
- Custom Fields vs Separate Table
- How to redirect wp-admin/index.php to a custom post type?
- How to search map address in custom post type?
- Ignore sticky posts if post is not in meta query
- Add html to cpt main page / admin edit.php
- register_taxonomy and register_post_type does not work [closed]
- Custom Search for Drafts in Custom Post Type
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Sorting Custom Post Type by Meta Value but wont display when set to 0
- Multiple meta_values in the pre_get_posts filter?
- Get posts between custom dates
- How to order separated Custom Post Search results
- Custom post type search using $_SESSION and pre_get_posts
- Can I search only some of the fields of a custom post type?
- Team club with CPTs and user registration + user dashboard
- Display a CPT based on a metabox selection
- creat filter with wp_query
- How to do WP_Query with two meta fields with orderby clause
- Using meta_query and tax_query at the same time
- Categories filtering in new post
- Advanced search form with filters for custom taxonomies
- Search one custom post type ONLY, disable “all posts”
- Filter posts by tax (dropdown) and meta value
- Two queries – one with checkbox ticked, one without – comparing meta_query
- Catch and display error on save_post action
- Redirecting search to specific templates with $_GET[“post_type”]
- Is possible register two archive pages for single custom post type?
- Search custom type post
- Custom Permalink For Custom Post Type – Working Fine But Broken For Pagination
- Creating a custom WP query for a Custom Post Type
- WP_List_Table Inside Metabox Not Working on Clicking Search Button
- ACF meta_key and meta_value break loop
- search results to show individual ACF fields from inside custom posts
- post_type incorrect for custom post type
- Live search by custom tag
- Re-order search results with posts_orderby filter and post meta value
- how to create custom taxonomy drop downs for parents and child
- How to get the posts that my following users are liked?
- Sort loop by custom field from different post type
- Meta_query by date for Events archive
- Add filter button to custom post type in admin area
- Adding Information To All Posts Screen
- Extensive search filtering and results->PDF in the front-end
- creating different edit screens for different roles
- Advanced search form with filters for custom taxonomies and custom fields
- How can I make a custom post type that loops pages in a new dashboard page, each single page is a new dashboard page (all within the back-end)?
- Querying meta values within an array
- 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 grouped by post type
- Filter page ID outside the loop and order
- Paginate yearly archives for a custom post type