這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Admin Quicknav

描述

Adds a simple dropdown box at the top admin edit screens allowing you to quickly jump from one page, post, or custom post type to the next without having to return to the respective listing page.

安裝

  1. Upload the extracted archive to wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu
  3. Enjoy!

Manual Usage

If you would like to filter the contents of the quicklink box, you can add a custom action for each post type you would like to filter:

add_action('wp_admin_quicknav_options_post', 'filter_post_quicknav');
function filter_post_quicknav($options=array())
{
  $params = array("post_type"=>'post',
                  "suppress_filters"=>false,
                  "posts_per_page"=>-1,
                  "orderby"=>'date',
                  "order"=>'ASC');

  $posts = get_posts($params);

  if (count($posts) > 0)
  {
    foreach($posts as $post)
    {
      $options[$post->post_title] = $post->ID;
    }
  }

  return $options;
}

You can style the quicknav combo box with css using its custom idenitifier:

#wp_admin_quicknav {
  margin-left: 10px;
}

常見問題

Will this work with my custom post types?

Yes. It will work with all posts, pages, and custom post types.

評價

There are no reviews for this plugin.

貢獻者及開發者

“WP Admin Quicknav” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Admin Quicknav 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

0.3

  • Added composer.json for use composer installations

0.2

  • Fixed php warnings when used on a new post/page

0.1

  • First commit