Use wp_dropdown_pages()
to create the drop down. It accepts an post_type
parameter.
To avoid collisions with plugins filtering this function you may use walk_page_dropdown_tree()
and build your own select
. See this post for a code example.
Related Posts:
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- How to add custom columns to Custom Post Type admin screen
- Is it OK to move admin menu items?
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How to add post_author column to custom post type
- WordPress User Roles, Custom Post Types, and Admin views
- How to customize admin posts based on the user who is logged in
- Remove rows in the manage post/page view
- Custom admin post.php page
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Merge two custom post types into one admin page?
- Remove the “View” Link in Post Admin
- Multiple custom post types under one admin menu
- How can I change the admin search posts fields?
- Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?
- How can I filter posts by post_parent in the admin?
- Admin Filter – Add Post Type Description on Post Type Page
- how to group custom post types
- How do I filter the excerpt metabox description in admin?
- Custom post type admin search
- Ordering posts by custom taxonomy in admin area
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- WordPress Custom Post Type Admin Page really slow
- Custom post type Admin Page
- Post slug changed using code doesn’t reflect on editor when post is published
- Exclude add_filter from the admin
- Remove date and category filters when editing custom post types
- Ordering Post 2 Post admin meta box by meta from CPT
- Displaying Post Title on Post Edit page?
- Make a custom column sortable, by custom post count
- Using multiple instances of wp_editor in Custom Post Type admin area
- How i add new link after Edit | Quick Edit | Trash | View in quick edit section
- Adding help information to custom post edit page
- Only Show an Author Their Custom Post Types
- Use a textarea for a custom post type
- Restrict categories to a custom post type
- 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?
- How to search CPT’s by meta query from the admin dashboard?
- Add theme options to custom post type admin pages [closed]
- Adding menu_order to CPT admin page
- How to remove ‘create new post’ entry for a custom post type?
- Changing ‘view’ link for custom post type on list post screen?
- Sort admin area by custom Event Date field
- How to make post sticky in the admin page?
- Admin not showing all custom post type posts and views not working
- How to only show posts assigned to current user, only in certain post types
- Unable to retrieve any posts of CPT in wp-admin
- Admin Pointers on a custom post type
- Customize my custom taxonomy table in Admin panel
- Notify admin on new submit
- On update or create post redirect to current post position in list
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Admin Filter – Add Post Type Description on Post Type Page
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Admin Column does not populate with data
- Custom Postype specific changes in admin panel
- It’s possible to hide body copy box for a custom post type?
- Show data from one Custom Post Type in another Custom Post Type
- Add a custom text to admin footer in a Custom Post Type page
- Add a ‘guide’ image to custom post type admin page
- Set thumbnail and title for a post type archive (not post itself!)
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Plugin or method of allowing user to rearrange custom post types with drag and drop?
- sortable columns for multiple custom post types not working
- Add ‘page template’ column to dashboard for CPTs
- Filter posts of custom post type by meta key in (List All Section)
- Custom capabilities not reflecting on admin panel
- Questions regarding add_meta_box()
- Change Post Meta via AJAX from the posts list table
- Custom Attachment Type
- Require custom post type if is_admin() – template doesn’t show up?
- Sorting custom post types in edit.php : Post disappear
- using the loop in custom meta is messing up ‘add new’ post type
- Metaboxes inside Tab
- Hide title field of selected post-types on edit pages
- After inserting new post with wp_insert_post() the post is not visble to WP_Query, but the same WP_Query works for post inserted from wp-admin panel
- Admin Post Table – Remove Title Edit Link
- Restrict Custom Post Type to One Item
- How to redirect from wp-admin/edit.php to a frontend page for specific custom post type?
- Simple Data picker meta box
- Custom post meta box as a sub form
- Customising the admin columns for a custom post type, but now most of the built in categories don’t display?
- Exclude categories For Custom post types
- Custom Post Type Causing Admin Sidebar UI Issue
- How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?
- Change column of row action (Quick Edit) links in WP_List_Table
- Collection of fields in a single post
- Show a custom field instead of username in the backend author area
- Can’t preview custom post – Redirected to home page
- How to make an admin create/edit post page to look like taxonomy page?
- Prevent users from changing post status
- admin search of pages returns custom post types
- Custom Plugin w/ Custom Post Types – Custom Posts Are Showing at all Privilege Levels – Is this possible to adjust?
- How to set the Screen Options for Users in the Admin Panel?
- Change CPT Edit Target Link for Admin List