The problem is that ‘post_parent’ is not a public query var, i.e. you can use it only from code.
To be able to use it from the URL, you just need to add these lines of code:
function make_post_parent_public_qv() {
if ( is_admin() )
$GLOBALS['wp']->add_query_var( 'post_parent' );
}
add_action( 'init', 'make_post_parent_public_qv' );
Related Posts:
- Filter by custom field in custom post type on admin page
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- Filter by custom Field for Custom post type Admin Listing
- Unable to filter on field on edit.php page
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- How can I add a column in the wp_list_table of the admin area?
- Add html to cpt main page / admin edit.php
- Filtering posts list table
- Custom filter function not working with Custom post type
- Filter posts by tax (dropdown) and meta value
- sortable columns for multiple custom post types not working
- Filter search posts by post meta?
- Is there any filter to add a custom attribute to the tag in admin panel?
- Help Adding filter to Add Media button for custom post type
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- Filtering WP_Query
- Get posts between custom dates
- Create a page that will be used to create a custom post type
- Customize my custom taxonomy table in Admin panel
- How to implement a Google map store locator
- Displaying custom taxonomy in the admin list of a custom post type
- Get parse_query filter to return slug instead of id
- Custom Post Type Nav to Subpage
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- Deleting Custom Posts & Meta Data on Uninstall
- Selecting a post in Dashboard
- filter custom post type by meta key in dashboard
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- Custom admin post.php page
- Categories of custom taxonomy don’t show any posts
- Post image in WordPress not appearing on home page
- A simple script to allow sorting of custom posts in admin?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Notify admin on new submit
- How do I create an archive page as a including metadata?
- How to add a post slug to a url?
- changing meta value and meta key of price field
- Posting to a Custom Post Type from front end – user generated content
- On update or create post redirect to current post position in list
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- Update Post Meta for a logged in user
- Getting meta in editor plugin, and event triggering issue
- How to Filter custom post type by taxonomy?
- How to duplicate entire custom post type
- A better way to add a meta box to custom post types
- Restrict Access to Posts based on Custom User and Post Meta Data
- Two Custom Post Types Many to Many Relationship
- Filter term taxonomy metabox in custom post type
- get_post_meta not working on publishing
- Should wp_postmeta meta_key always be unique for a given post_id?
- creat filter with wp_query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- how can I register a post_meta field in an existing CPT and then call it again with get_post_custom()?
- get_post_meta returning no value in custom post type alert email
- Options page – dropdown of users
- post meta parameter in post custom-post-type endpoint with restapi
- How can I made custom taxonomies relationship?
- How do I set all of a particular post meta to a value within the custom post type I’m in?
- WooCommerce sort products by the actual product width(not the shipping width)
- How to change the post type a theme shows by default?
- filter custom post in rest api with custom function
- No Permission to add new Page, Post or CPT with Admin role
- Update postmeta Parent when post_status child change
- Metabox not show in categories custom post type cmb2
- WordPress request fiter order by related post’s post_title
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Sort and filter custom post type posts by custom taxonomy
- Versioned Custom Post Type (Not the same as revisions)
- Admin Column does not populate with data
- Update database from Quick Edit according to Checkbox state of Custom Post Type
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Loop filtering Custom Post Types and/or Categories
- search suggest – filter post type
- Storing a many to many post type relationship in post meta and keeping SQL ability for Joins
- the_content filter on some post types only not working
- Dynamic Custom Fields
- Show Custom Post Type meta boxes only on Page Edit
- CPT Validation to not show “Post updated.”
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Filter Posts from the Main Query
- Categories filtering in new post
- How to use manage_$post_type_posts_columns with underscore in post type?
- How does the filter post_updated_messages work?
- Search filter triggered & sort by custom post type
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Importing Data from a Non-WordPress database, into WP
- Getting thumbnails of a custom posts featured images in a page-templates metabox
- List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
- Remove Post Custom Meta Box
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Custom fields for custom post type
- Show future events based on custom field AND order by date
- Meta Data for Custom Post Type not saving
- Using preg_replace to filter custom textarea
- Custom post type isn’t working
- How can I add a filter to a particular post format?
- Is there any way to get list of all possible filter hooks for all post types?
- Can I display custom post types in home.php or need page template?