wp_dropdown_pages()
does not accept a post type as an argument, however, as noted in the Codex, it may be possible to use some arguments of get_pages()
like post_type
.
Unfortunately, the post_type
argument for get_pages()
only accepts a string and not an array of post types.
Although you may be able to pass a single post type as an argument to wp_dropdown_pages()
you cannot pass an array of post types.
Related Posts:
- Best way to arrange custom post types by Attributes -> Order metabox value?
- Custom page type – template under page attributes?
- How to get a list of post types that “support” various things such as page-attributes?
- Add Standard Page Attributes Metabox for Page Parent
- Sort CPT archive by order prevents sorting in admin
- How to use Custom Page Templates for hierarchical Custom Post Type
- Set template for custom post type?
- Add a custom meta box for client to order CPT posts how they want
- How to enable parent-child relationships and post attribute admin widget for posts
- Remove Header and style.css from Specific Post template
- How to enable post types on Page Attributes?
- WordPress Custom Post Type – Post Attribute: Template. Template shows up and saves on the back end, but the default theme file is being rendered
- Templates list in “Page Attributes” metabox is inaccurate
- Get The Post Type A Taxonomy Is Attached To
- Meta query with boolean true/false value
- Custom Post type & Taxonomy URL structure
- Custom Post Type – Taxonomy Dropdown Menu?
- How to add multiple images to custom post type?
- Set custom upload path for custom post type only?
- Two Custom Post Types, Share Two Taxonomies
- How I check if the same post slug has not been used before publishing?
- User roles – enable custom posts disable posts
- Remove CPT slug from URL
- WordPress Gutenberg-Block with ESNext (withState, withSelect)
- Date query for a custom meta field
- How to show custom post type count in the users admin page
- Importing posts in custom post type into new website
- Timepicker-addon doesn’t show – Datepicker works fine?
- Auto-generated posts not showing in backend (but being counted!)
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- Including Custom Meta with posts_where query
- Adding HTML tags or css classes to admin columns
- How to set YouTube video as featured image?
- Add meta value to custom post type on publish
- making available just some parts of theme option
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- Display not found page 404 on specific Post Type
- redirect automatic page that serves custom posttype content
- Allow Editor to view/modify a custom post type
- Is it possible to use have_posts function to list custom post type posts inside a category?
- Assign External Database Queries to Global Variables and Make Them Accessible
- Custom post type permalink tag 404
- Searching Custom Fields
- Custom taxonomy and post type with same slug
- Can NOT search my custom post type?
- How can I display the parts of custom posts?
- Why won’t this jQuery code work?
- How to get all Custom Post Type Filtered by one Specific Taxonomy Term
- Why are previous_post_link/next_post_link skipping some posts?
- Gravity forms how to display list of submitters on the post submitted page [closed]
- Hide Status Option From WordPress Publish Metabox and Rename Published on:
- Template for custom post type when taxonomy is in the URL
- How to create custom search result page with custom URL parameters for custom post type?
- Targeting child pages of custom post types using function?
- Query custom post types & Taxonomies and list them in a table on a page
- Filtering custom posts by custom fields (ACF) [closed]
- add custom tags for custom post type in wordpress
- Modify a plugin function output from another plugin
- Display custom-post type based on the Title matching the current selected value
- Filter search posts by post meta?
- Yelp-style geographic directory plugin?
- Modifying search results based on post_type
- WordPress general content best pratices
- Is it a connection or relationship between 2 custom post types?
- i want to send email to user when the custom taxonomy is changed
- Faking “Same Slug Root, Multiple Custom Post Types” with Redirects?
- Issues with static pages redirecting towards home.php
- How to apply multiple rewrite_rule to a single custom post type url?
- Custom post type template – add banner under heading
- Custom post type single page returning 404 error when sharing archive url with custom taxonomy
- Query first and last name from custom post type
- How to get current post type?
- How to convert Post Object Custom Field into Tags
- WP Query filter search. Result show all posts instead just custom post type
- Subpage with custom post types inside another cpt
- Custom Post Type single post type shown in theme single.php
- save_post affect creation and deletion
- how to allow subscriber to add/edit/delete custom post type
- Page as parent for CPT and other pages
- Change the url of a custom post type to include taxonomy
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Different taxonomy.php for different custom post types
- How to keep a CPT stick to specific position?
- Custom post type issue
- How to query posts by meta keys AND under specific category?
- Shortcode display CPT Query only showing 1 post?
- Add multiple custom meta boxes to different custom post types
- how to load custom single.php?
- How to show a custom taxonomy using a custom template
- Custom post types & Thumbnails
- Strange behaviour using 3.8.1
- I want to split this into two functions
- Repeatable Custom Field for Media Upload
- Change position of Post Formats box?
- How to store datetime from custom meta box so that it can be sorted by
- Add HTML before a specific div?
- Woocommerce product page is not showing custom css [closed]
- Front end post or photo or both
- Is there any way of not using my_init_method in the following code (that creates a custom post type)?
- Display ONLY ONE $term (Out of 4 terms) from a Custom Taxonomy and CPT