WP Dropdown Posts
This plugin will show post list as dropdown just like wp_dropdown_pages, most parameter wp_dropdown_pages are accepted too.
This plugin will show post list as dropdown just like wp_dropdown_pages, most parameter wp_dropdown_pages are accepted too.
Screenshots & previews.
- 01Upload the wp-dropdown-posts.php file to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Paste the following code to your theme file, e.g in your sidebar.php
That will show latest 10 posts in dropdown. Title that has more than 20 characters will be truncated.
Parameter
- 04sort_order
- 05sort_column
- 06exclude
- 07include
- 08meta_key
- 09meta_value
- 10authors
- 11number
- 12offset
- 13name
- 14show_option_none
- 15show_option_no_change
- 16option_none_value
Description about above parameters can be found here https://codex.wordpress.org/Template_Tags/wp_dropdown_pages#Other_Parameters
- 17jump_to, if is set to 0, the dropdown will not clickable, default 1