Perhaps this filter can help you to modify the query for the specific post type and inside wp-admin
as per the documentation, this filter is called before the query is executed so you can modify/optimize the query with the help of this filter.
do_action_ref_array( 'pre_get_posts', WP_Query $query )
further reference: https://developer.wordpress.org/reference/hooks/pre_get_posts/
Related Posts:
- How to make post sticky in the admin page?
- Remove rows in the manage post/page view
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- How do I edit the WordPress post.php file?
- list articles in admin showing nested categories or slugs?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Publishing failed. The response is not a valid JSON response
- Limiting the Number of User Posts to Their Own Posts
- Display posts of only a certain category in WP Admin section?
- Storing posts from query and accessing later via AJAX call
- If post has custom field then display css-class
- Display only one post each WEEK
- List children on child post
- Restrict custom post type from appearing with ?post_types=
- Admin Pointers on a custom post type
- Show custom post type filtered by category
- create parent post using wp_insert_post
- Turn on and off custom post type from admin?
- Missing Posts in Custom Taxonomy List
- Display random posts, but omit the post it is on?
- How do I do this with WordPress? Taxonomies?
- Add a button or image button that calls wp functions in the wp-admin
- Disable block with taxonomies at post page
- I would like to have different styles for my posts based on the content of each post
- How can i add thumbnails images to particular post (using code not admin pannel) in wordpress
- Showing posts from different categories and from custom post type
- Get latest 3 posts from multiple CPT in one query
- Selecting a post in Dashboard
- Custom Post List View: Page or something else?
- Allow non-logged in users to see a future post after clicking on a list of future posts
- Which post does a taxonomy term belongs to?
- Custom admin post.php page
- List custom taxonomy specific to one custom post type
- Custom Taxonomy back-end customizations
- Post image in WordPress not appearing on home page
- Meta query for custom post type ignored in main query
- Changing custom type name hides the posts
- Display Ad on Specific Categories
- Hiding posts by other users and non-logged in
- Update Post Meta for a logged in user
- Add custom field to Posts and sort by it
- Add custom post type settings to wordress default posts
- Get related posts of child term of custom post type
- Two Custom Post Types Many to Many Relationship
- Problem with displaying posts in the CPT category
- Filter term taxonomy metabox in custom post type
- JS innerhtml changing style when using AJAX
- Show titles, date of all posts on single category page
- CPT post count is 0 for the authors in the User list
- Addition of custom option panel crashes Media Library & Admin Area
- Side effects of Script and Iframe in post
- How to change the post type a theme shows by default?
- Tracking changes in admin-page so user gets warning when leaving the page
- Set a checkmark in a category based on a URL-parameter
- Several post types on WP Query by tag and taxonomy
- Possibilities for the edit.php admin panel? [closed]
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- custom post type category count shortcode
- Portfolio Page for Classic Posts
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Admin Filter – Add Post Type Description on Post Type Page
- Add post location with mile radius allowing search
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Get the category from custom post type
- Is it possible to store Custom Post Type data in separate set of tables and still have wp_post class functionality?
- Set up post page like JAMA articles
- Custom Post Slug same as Parents Category Slug
- Shortcode not working with post counter
- WP-ADMIN – Listing all CPT in “posts” listing
- Changing default ‘posts’ parameters with register_post_type_args
- Admin Column does not populate with data
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- How to integrate a form (Ninja Form or Contact Form 7) with Custom Post Types?
- Prioritize posts in query by meta keys?
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Allow users to create posts without logging in?
- How to get all tags of a custom post type by id
- How to define which register_post_status goes to which register_post_type?
- Load Next Posts With AJAX not working with custom post type
- Limit the post for differents custom post type in the same wp_query
- Custom Postype specific changes in admin panel
- Grouping of CPTs and taxonomies into menu groups in admin
- 2 Different Custom Post Types in Submenu
- How to assign classes to all elements?
- How can I show 1 featured post in a styled element, and the next few below differently styled
- Some posts from custom post type to subdomains
- How can i create an custom post template for an specific post category? [closed]
- How to sort posts in a custom post type by title in ascending order by default?
- It’s possible to hide body copy box for a custom post type?
- WP the_posts() on single-cars.php get category link
- Conditional for a Single Post That Belongs to a Category?
- $post not working working in AJAX plugin with custom post type
- Permalink misbehaving in Custom Post Types
- Show data from one Custom Post Type in another Custom Post Type
- Check post on publish for blank title
- how to check if custom post title exists or not?
- Different Limit number of post on different archive page
- How to change “post_class()” for a custom post type?
- Modify previous and next post links to current Authors Other posts