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

Archive Posts Sort Customize

外掛說明

Easily settings interface and available sort to home, date archives, category/tag/taxonomy archives, search.

Sort Items

  • Post Date
  • Post Title
  • Post Author
  • Post Comments Count
  • Post ID
  • Post Last Modified
  • Post Order (page attributes/menu_order)
  • Custom Field of Post

For sort order to title

Available to ignore words of beginning of the title for post title of sort.
e.g.)
* The
* A

For sort order to custom fields

Available to automatically whether sort to number (meta_key_num) or sort to string(meta_key).

For Action/Filter

You will possible to action before and after the this plugin.

add_action( 'apsc_before_sort' , 'custom_apsc_before_sort' , 10 , 2 );

function custom_apsc_before_sort( $wp_query , $setting_data ) {

    //print_r($wp_query);
    //print_r($setting_data);

}


add_action( 'apsc_after_sort' , 'custom_apsc_after_sort' , 10 , 2 );

function custom_apsc_after_sort( $wp_query , $setting_data ) {

    //print_r($wp_query);
    //print_r($setting_data);

}

For Debug

You will possible to see the debug information after activate the Debug Bar plugin.

螢幕擷圖

  • Settings Interface
  • Support the ignore words for title order sort.
  • Support the custom fields order sort.
  • Support the individual term sort settings.

安裝方式

  1. Upload the entire archive-posts-sort-customize folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. You will find ‘Archive Posts Sort Customize’ menu in your WordPress admin panel.

常見問題集

Q. For found the bug

A. Please contact the Support Forum.
https://wordpress.org/support/plugin/archive-posts-sort-customize

Q. Can I change the setting authority of the plugin?

A. Yes, You will be able to plugin authority. Please try the filter hook.

add_filter( 'apsc_capability' , 'custom_apsc_capability' );

function custom_apsc_capability( $capability ) {

    //var_dump($capability);
    $capability = 'edit_posts';

    return $capability;

}

使用者評論

2017 年 8 月 4 日
Great way to sort posts on archives. Settings can be applied to all or just individual categories so each can be different. Way cool and easy. Thanks!!! 🙂
2016 年 9 月 3 日
A great plugin, but wish a widget that can allow a user to sort posts in a "real-time" manner. that is, I can operate the sorting when i browse a page. i can browse in Date, and then in Title, and then in Category, etc.
2016 年 9 月 3 日
Exactly what I was looking for. Searched for hours for this plugin. All the others just had a drag and drop feature. This one you can set and has lots of options.
閱讀全部 14 則使用者評論

參與者及開發者

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

參與者

將 Archive Posts Sort Customize 外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.6.1

  • Fxied: Show error when not installed debug bar plugin.

1.6

  • Added: Support archives for Yearly/Daily.
  • Added: Some actions before and after sort.
  • Updated: Taxonomies archives settings.

1.5.1

  • Security enhancement: Escape to add_query_arg/remove_query_arg.

1.5

  • Added: Order field of Page Attributes of the Sort Target.
  • Added: Ignore words of Post Title order of Sort.

1.4

  • Added: Custon Taxonomies.
  • Fixed: Get data mistake when category settings.

1.3.1

  • Fixed: Javascript toggle miss.

1.3

  • Updated: Settings for per Categories.
  • Changed: Data version.

1.2.4.2

  • Fixed: Data update way.

1.2.4.1

  • Updated: Screen shots.
  • BUg Fixed: Monthly archive link on settings screen.

1.2.4

  • Changed: Data save process.
  • Supported: Compatible to 3.8-RC1.
  • Added: Customize sort for Monthly archive.
  • Bug Fixed: Empty setting when order by is custom field.

1.2.3

  • Added: Last modified of Sort target(orderby).
  • Updated: Translations.

1.2.2

  • Support for SSL.
  • Check to 3.6.

1.2.1

  • Added a confirmation of Nonce field.

1.2

  • Added Search support.

1.1.1

  • Some translation fixed.

1.1

Made it possible to sort of home.

1.0

This is the initial release.