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

Sortable Posts

外掛說明

Sortable Posts uses and easy to use drag and drop ui to allow users to update the order of posts and taxonomy terms. Sortable Posts automatically arranges your posts and taxonomy terms on the frontend to match the order on the backend as well.

Using Sortable Posts In Your Theme / Plugin

Sortable Posts currently allows users to add post types to the list of sortable post types and taxonomies by either adding them in the options panel or by adding them via a custom filter. Should you want to add them via a filter you can use the sortable_post_types for posts and the sortable_taxonomies filter for taxonomies.

Documentation can be found here.
https://github.com/CarlosRios/sortable-posts

螢幕擷圖

  • before Sortable Posts
  • after Sortable Posts
  • Dashboard options
  • Sortable Taxonomies

安裝方式

Sortable Posts requires the WP REST API that is a part of WordPress core as of 4.4.

  1. Navigate to ‘Add New’ in the plugins dashboard
  2. Navigate to the ‘Upload’ area
  3. Select sortable-posts-wp.zip from your computer
  4. Click ‘Install Now’
  5. Activate the plugin in the Plugin dashboard

Using FTP

  1. Extract the sortable-posts-wp directory to your computer
  2. Upload the sortable-posts-wp directory to the /wp-content/plugins/ directory
  3. Activate the plugin in the Plugin dashboard

常見問題集

How do I use it?

Navigate to the Sortable Post Types screen under the WordPress Settings tab and choose the post types you want to make sortable.

Does it work with built in WordPress post types?

No, currently it does not support the built in post types.

Does Sortable Posts work with taxonomies as well?

Yes! Sortable Posts requires at least WordPress 4.4 to make use of the new term meta fields that were added to it.

使用者評論

2016 年 9 月 3 日 1 則留言
I really like the UI, the numbering of posts is a great touch to know where you are in the list. Developer was also really helpful in resolving a conflict with another plugin.
2016 年 9 月 3 日 1 則留言
Sorts Posts and Terms like no other plugin. Hope this one gets the attention it deserves!
閱讀全部 4 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Sortable Posts〉的開發相關工作。

參與者

將〈Sortable Posts〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.1.3

  • fix: settings issue causing php warning when no post types are saved.
  • fix: settings page for taxonomies works even when given an associative array. Props @mcguffin
  • fix: change sql to seach in wpdb posts table and not just posts table. Props @mcguffin
  • improvement: add translation to settings page.
  • improvement: load settings only on admin side. Props @mcguffin
  • improvement: add new filter sortable_posts_settings which allows devs to remove settings page if set to false. Props @mcguffin

1.1.2

  • fix broken saving.
  • improvement: stop sql from injecting when saving order
  • add activation hook that flushes rewrite rules for older installs

1.1.1

  • fix issue with sortable posts looking for assets in the wrong folder.
  • update docblocks

1.1

  • remove using WP_REST_Controller class because it was not included in 4.4

1.0

  • add sortable taxonomies with the help of the WordPress 4.4 term metadata improvements.
  • updated plugin to use REST API to power its ajax.
  • visual modifications to the post edit screen.
  • added an alert message when the sort update succeeds or fails.
  • initial commit for plugin version