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?
- How to set up a private custom post type that is accessible in the administrative dashboard?
- Tracking changes in admin-page so user gets warning when leaving the page
- Possibilities for the edit.php admin panel? [closed]
- No Permission to add new Page, Post or CPT with Admin role
- 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
- WP-ADMIN – Listing all CPT in “posts” listing
- Admin Column does not populate with data
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- Filtering posts list table
- CPT Validation to not show “Post updated.”
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Custom Postype specific changes in admin panel
- Grouping of CPTs and taxonomies into menu groups in admin
- It’s possible to hide body copy box for a custom post type?
- Custom post type isn’t working
- 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
- Creat new admin url for custom post type
- Custom Field values not Showing in Edit Page of Custom Post Type
- WordPress custom post type capabilities issue
- Set thumbnail and title for a post type archive (not post itself!)
- Use remove_meta_box conditionally on custom post type
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Custom WP_Query doesn’t display all posts
- How to group navigation items in the admin panel
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- How to check if post/page or taxonomy post is published by admin
- Linking to Post Types from wp-admin
- Plugin or method of allowing user to rearrange custom post types with drag and drop?
- CPT Columns doesn’t show categories
- Hide Status Option From WordPress Publish Metabox and Rename Published on:
- Insert Custom Post Types
- Create field of Custom Post Types
- sortable columns for multiple custom post types not working
- Custom Post Type – Support “author” only for admins
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- Custom posts of one type have disappeared from admin. Still appear on site [closed]
- How to get the custom post list to admin user edit page?
- Copy order items with metadata between orders – Woocommerce
- Change link for “add new” buttons on custom post type
- Add ‘page template’ column to dashboard for CPTs
- Custom Post Type – Portfolio no longer works
- How do I edit the WordPress post.php file?
- Filter posts of custom post type by meta key in (List All Section)
- Add data to post edit page, when post is published
- Custom capabilities not reflecting on admin panel
- get_post_types not working properly in admin
- How to limit what Editors see in the admin?
- Multiple wp_editor instances in custom post type using Ajax
- Questions regarding add_meta_box()
- Change Post Meta via AJAX from the posts list table
- Is there a hook between clicking on “Add new” and the edit screen of a new post?
- Custom Attachment Type
- Require custom post type if is_admin() – template doesn’t show up?
- Function to add custom HTML into head in custom post-type list page
- Sorting custom post types in edit.php : Post disappear
- How to customize `Edit-Post` Screen
- Multiple custom post types on same admin page
- Sort by post word count in admin area
- using the loop in custom meta is messing up ‘add new’ post type
- WordPress admin for a custom post, hide/collapse the main “title” and “description” boxes
- How to display magic field’s custom write panel in wordpress theme?
- jQuery UI & Admin (Calendar)
- Change ordering of fields of custom post type in admin page
- How to display author details in a custom post type in the wordpress backend?
- Add Content Column to Custom Post Type backend
- Metaboxes inside Tab
- Change Text in Admin Panel
- Admin slow on Postlist (over 30k Posts in Database)
- Hide title field of selected post-types on edit pages
- get_posts() returns empty on custom post type /wp-admin/edit.php
- 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
- Put featured image under post title in admin area
- list articles in admin showing nested categories or slugs?
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- How to display an admin-notice after custom post type edit modification
- Admin Post Table – Remove Title Edit Link
- Is there any filter to add a custom attribute to the tag in admin panel?
- Sort custom post column by generated value?
- Add Custom Field in Product in WP Admin and send to Order Webhook
- Publishing failed. The response is not a valid JSON response
- Limiting the Number of User Posts to Their Own Posts
- How to overwrite function to display parent page combobox for custom post type in Edit Post Page?
- How to hide private posts even if user is admin