该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WP Dropdown Posts

描述

This plugin will show post list as dropdown just like wp_dropdown_pages, most parameter wp_dropdown_pages are accepted too.

屏幕截图

  • Wp Dropdown Posts
  • Long titles will not break your dropdown (version 0.2);

安装

  1. Upload the wp-dropdown-posts.php file to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. 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.

Parameter

  • sort_order
  • sort_column
  • exclude
  • include
  • meta_key
  • meta_value
  • authors
  • number
  • offset
  • name
  • show_option_none
  • show_option_no_change
  • option_none_value

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 …

评价

此插件暂无评价。

贡献者及开发者

“WP Dropdown Posts” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WP Dropdown Posts”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.2

  • Add feature to show only first x title characters, so the dropdown will not spreaded.
  • New parameter: cut_word, cut_limit, cut_replacement

0.1

  • First release