This plugin will show post list as dropdown just like wp_dropdown_pages, most parameter wp_dropdown_pages are accepted too.
- Upload the
wp-dropdown-posts.phpfile to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
Paste 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.
Description about above parameters can be found here https://codex.wordpress.org/Template_Tags/wp_dropdown_pages#Other_Parameters
- jump_to, if is set to 0, the dropdown will not clickable, default 1
- cut_word, set to 1 to cut long titles, default 0
- cut_limit, number of first characters will be shown, default 30
- cut_replacement, the replacement of truncated characters, default …
There are no reviews for this plugin.
Contributors & Developers
“WP Dropdown Posts” is open source software. The following people have contributed to this plugin.Contributors
Translate “WP Dropdown Posts” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- Add feature to show only first x title characters, so the dropdown will not spreaded.
- New parameter: cut_word, cut_limit, cut_replacement
- First release