這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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 …

評價

There are no reviews for this plugin.

貢獻者及開發者

“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