Post Types Order

説明

Over 9.8 MILLIONS DOWNLOADS and near PERFECT rating out of 200 REVIEWS.
A powerful plugin, Order Posts and Post Types Objects using a Drag and Drop Sortable JavaScript capability.

このプラグインを使うと、投稿や固定ページなどの一覧ページ、あるいは WordPress 標準以外の手段で用意された一覧ページで記事の並び順をカスタマイズできます。
投稿や固定ページだけでなく、任意のカスタム投稿の一覧も並べ替えることができます。順番の並べ替えはかつてないほど簡単になりました。

使い方

このプラグインは、WordPress の習熟度にかかわらず、だれもがソート機能を使えるように開発されました。

  • プラグインの新規追加画面でインストールを行います。post-types-order フォルダを /wp-content/plugins/ ディレクトリへアップロードしてインストールする方法もあります。
  • プラグインを有効化します。
  • 設定 > Post Types Order と進んで設定画面を表示し、最低限の設定を行って保存します。
  • 自動ソートオプションをオンにすると、コードの変更を気にすることなく、プラグイン側で設定した投稿順序が即座に適用されます。
  • すべての投稿タイプ (非階層型) に表示される「並べ替え」のインターフェイスを使って、投稿の順序を新たに並び替えます。
  • コードで並べ替えを適用したいときは、カスタムクエリー引数に 'orderby' => 'menu_order' を含めてください。詳しい情報は http://www.nsp-code.com/sample-code-on-how-to-apply-the-sort-for-post-types-order-plugin/ にあります。

使用例

動画でご覧いただいたように、ドラッグ & ドロップするだけでフロントエンドの投稿順がすぐ反映されます。
反映されないときは、何か間違ったことをしているか、使用中のテーマのコードが WordPress Codex の規則に準じた標準的なクエリーを使っていないことが考えられます。そのようなときは、動作上の不具合や問題をフォーラムで報告してみてください。私たちは、問題解決のためにできる限りのサポートをします。

プラグインを有効化して何か問題が起きたときは、WordPress.org のフォーラムを利用するか、私たちのサイトでお知らせください。お寄せいただいたコメントや報告を確認いたします。

もっと多くの機能が必要ですか ? 高機能版の Advanced Post Types Order には、階層を持つ投稿タイプの並べ替え、手動 / 自動の並べ替え、カテゴリーの並べ替え、並べ替えの適用条件、大きな投稿リストのページネーション、モバイル対応、強化されたインターフェース、各種プラグインとの互換性 (マルチサイトのサポート、WPML、Polylang、WooCommerce、WP E-Commerce、Platform Pro、Genesis など)、フロントエンドの並べ替えインターフェースなどが実装されています !

このプラグインは Nsp-Code が開発しました。

プラグインの翻訳について

プラグインの翻訳でコミュニティに貢献してみませんか ? 詳しく知りたい方は下記のウェブサイトを参照してください。
https://translate.wordpress.org/projects/wp-plugins/post-types-order
http://www.nsp-code.com

スクリーンショット

  • 並べ替えができる独自インターフェースの例。

  • WordPress デフォルトのインターフェイスでも並び順を管理できます。

インストール

  1. post-types-order フォルダを /wp-content/plugins/ ディレクトリにアップロードします。
  2. 管理画面 > プラグイン と進んで有効化します。
  3. 有効化したら 設定 > Post Types Order の順に進み、設定内容を確認します。
  4. 各投稿タイプのセクションに表示される「並べ替え」リンクを使うか、WordPress のデフォルトインターフェースを使うかして並べ替えます。

FAQ

electronice_delphi@yahoo.com まで気軽にお問い合わせください。

私は PHP の知識がまったくありません。このプラグインは私でも使いこなせるでしょうか ?

もちろんですとも !
他の多くのプラグインとは異なり、カスタマイズした並び順を表示するためにコードを追加したり変更したりする必要はありません。このプラグインには WordPress のクエリーを自動更新する機能があり、投稿一覧画面で設定した順序でクエリーが返されます。独自実装したコードを使いたいときのために、その機能をオフにする設定もあります。

クエリーに明示的にソートを適用するにはどうしたらよいですか ?

カスタムクエリー引数に ‘orderby’ => ‘menu_order’ プロパティを含めてください。

どのような種類の固定ページや投稿を並べ替えできますか ?

階層を持つ設定をしない限り、WordPress に定義されているすべての投稿を並べ替えられます。WordPress デフォルトの投稿だけでなく、カスタム投稿にも適用できます。

投稿を並べ替えできるインターフェースが追加されることはわかりました。WordPress デフォルトの管理画面ではどのように見えるのでしょう ?

そのインターフェースで定義した投稿の並び順を、WordPress デフォルトの管理画面で確認できるオプションが用意されています。

実装してほしい機能があります。どうしたらいいですか ?

どんなアイデアでも歓迎です ! お寄せいただいたアイデアを新バージョン開発のためのリストに加えます。ただ、実装には時間がかかるかもしれません。もし急いでいるのでしたら、少額の寄付を検討していただけるとうれしいです。

自動ソートがオンのとき、特定のクエリーを用いて並べ替えを無視させることはできますか ?

カスタムクエリーの引数に ignore_custom_sort を含めれば実現できます。http://www.nsp-code.com/advanced-post-types-order-api/sample-usage/ にコード例があるので参照してください。

自動ソートがオンのとき、特定のクエリーを用いて強制的に並べ替えを適用する方法はありますか ?

pto/posts_orderby フィルターを使えば実現できます。http://www.nsp-code.com/ignore-sort-apply-for-certain-query-on-post-types-order/ にコード例があるので参照してください。

フロントエンドで並べ替えできるインターフェース、ショートコード、フィルター、条件分岐、高度なクエリー、タクソノミーやカテゴリーの並べ替えなど、もっと多くの機能が欲しいです。

高機能版の Advanced Post Types Order にアップグレードすることを検討してみてください。手頃な価格で導入いただけます。

評価

2023年10月20日
Despite some negative reviews, I find the Post Types Order Plugin very useful for rearranging my art images. For my needs, I wouldn't be without it.
2023年6月2日
Essential for when you need to move things around
2023年6月1日 2 replies
This plug-in used to worked well, even with all my plugins. For whatever reason it no longer works at all with the last few versions of WordPress. As far as I have tested: it is not a conflict with a theme, plugin(s) or page/custom post type. Update: works now, just need to manually configure for each post type now, was working by default before. A bit confusing. For more info: https://wordpress.org/support/topic/drag-and-drop-not-functioning/
284件のレビューをすべて表示

貢献者と開発者

Post Types Order はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Post Types Order” は22ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Post Types Order” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

2.2.1

2.2

  • Formidable style fix when Autosort is active.
  • Plugin headers format update.
  • WordPress 6.5 compatibility check and tag update ( RC1 )

2.1.8

  • Fix: Media/images order, retrieve the items per page from user upload_per_page

2.1.4

  • PHP Deprecated fix: Constant FILTER_SANITIZE_STRING is deprecated
  • WordPress 6.4.3 compatibility check and tag update

2.1.2

  • PHP 8.2.4 check for compatibility
  • WordPress 6.4.2 compatibility check and tag update

2.1

  • Trigger wp_cache_flush when saving the order to clear the internal caches
  • WordPress 6.3 compatibility check and tag
  • Compatibility update for lite speed cache

2.0.9

  • Fix: is_plugin_active

2.0.7

  • Compatibility class re-build
  • Fix: Enfold templates when using Admin Sort

2.0.5

  • Merge the “default archive&drop” option and keep the individual menu Yes/No for the default WordPress interfaces, to avoid confusion.

2.0.2

  • The Archive drag & drop is disabled by default
  • Small layout changes
  • WordPress 6.2 compatibility tag

2.0

  • cmoposer.json を更新し、wpackagist.org を使うようにした。
  • 投稿タイプでドラッグ & ドロップを選択できるオプションを追加した。
  • WordPress デフォルトのインターフェースでドラッグ & ドロップをできるようにし、各項目のチェックボックスの下に新しいアイコンを追加した。
  • 自動ソート無効時に、並べ替えを適用しないようにするための Ajax 呼び出しの有無をチェックするようにした。
  • プラグインページのヘッダー画像を更新した。

1.9.9.2

  • WordPress 6.1.1との互換性を確認した。

1.9.9.1

  • WordPress 6.0との互換性を確認した。

1.9.9

  • Fix layout change when sorting by drag&drop within default WordPress interface.
  • Add placeholder row size by setting a tr colspan of the dragable element.

1.9.8

  • 誤字を修正し、Readme ファイルを更新した。
  • WordPress 5.9との互換性を確認した。

1.9.7

  • Remove Twitter button
  • Remove unused gif image
  • HTML と CSS を整理した。

1.9.5.7

  • Code cleanup
  • WordPress 5.8.1 compatibility tag

1.9.5.6

  • Fix PHP implode() notice

1.9.5.5

  • Fix PHP implode() notice

1.9.5.4

  • Fix PHP implode() notice
  • Ensure the drag & drop interface show for correct post types, non hierarchically to ensure correct functionality
  • WordPress 5.6 compatibility tag

1.9.5.2

  • Clean post cache on order update to allow menu_order to change on cached data
  • WordPress 5.5 compatibility tag

1.9.5.1

  • Fix: Outputs the admin save notice through admin_notices filter

1.9.5

  • Fix: disable drag & drop within taxonomies interfaces; fix WooCommerce attributes sort issue
  • Reorder interface slight styles improvements
  • Compatibility tag update for WordPress 5.4.2

1.9.4.3

  • Option text translation update
  • Changed the posts class to to wp-list-table when applying sortable for better compatibility
  • Compatibility tag update for WordPress 5.4

1.9.4.2

  • Compatibility tag update for WordPress 5.3

1.9.4.1

  • Ignore the Events Calendar posts
  • Filter typo fix

1.9.3.9

  • Ignore sorting when doing Search and there’s a search key-phrase specified.
  • Ignore sorting when doing Search within admin dashboard
  • Removed Google Social as it produced some JavaScript errors
  • WordPress 4.9.7 tag update

1.9.3.6

  • Clear LiteSpeed Cache on order update to reflect on front side
  • WordPress 4.9.1 tag update

1.9.3.5

  • Fix: updated capability from switch_theme to manage_options within ‘Minimum Level to use this plugin’ option
  • Default admin capability changed from install_plugins to manage_options to prevent DISALLOW_FILE_MODS issue. https://wordpress.org/support/topic/plugin-breaks-when-disallow_file_mods-is-set-to-true/
  • Prepare plugin for Composer package

1.9.3.3

  • Plugin option to include query argument ASC / DESC

1.9.3.2

  • Include ASC / DESC if there is a query order argument
  • Avada fix ‘product_orderby’ ignore

1.9.3.1

  • WordPress 4.8 compatibility notice
  • Slight code changes, remove unused activate / deactivate hooks
  • Updated po translation file
  • Updated assets

1.9.3

  • Fix for custom post type objects per page when using default archive interface drag & drop sort
  • Plugin code redo and re-structure
  • Improved compatibility with other plugins
  • Security improvements for AJAX order updates

1.9

  • Remove translations from the package
  • Remove link for donate
  • Wp Hide plugin availability notification
  • New Filter pto/get_options to allow to change default options; Custom capability can be set for ‘capability’
  • New Filter pto/admin/plugin_options/capability to allow custom capability option to be inserted within html

1.8.9.2

  • WPDB Prepare argument fix
  • User preferance objects per page set to default if empty

1.8.9

  • Add Nonce for admin settings
  • Update queries to use prepare
  • Drag & Drop Sortable within Post Type archive interface
  • Code cleanup
  • Set time limit for ajax calls to attempt a code execution extend

1.8.7

  • Admin Post / Page Gallery items order fix
  • New filter pto/posts_orderby to ignore sort apply

1.8.6

  • PHP 7 deprecated nottice fix Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP;
  • Fix: $_REQUEST[‘action’] comparison evaluate as Identical instead equal
  • New filter cpto/interface_itme_data to append additional data for items within sortable interface
  • Slight style updates
  • Replaced Socialize FB like page

1.8.5

  • Text domain change to post-types-order to allow translations at https://translate.wordpress.org/projects/wp-plugins/post-types-order
  • New query argument ignore_custom_sort , to be used with Autosort. Ignore any customised sort and return posts in default order.

1.8.4.1

  • Sortable interface styling improvements
  • Portuguese translation update – Pedro Mendonca – http://www.pedromendonca.pt
  • Text doamin fix for few texts

1.8.3.1

  • Advanced Custom Fields Page Rule fix
  • Show / Hide Re_order inderface for certain menus. Option available within Settings area.
  • Media Sort interface objects order fix, when query-attachments REQUEST
  • Bug – Thumbnails test code remove

1.8.2

  • Media Uploaded To after sort fix

1.8.1

  • Next / Previous sorting apply bug fix for custom taxonomies
  • Portuguese translation update – Pedro Mendonca – http://www.pedromendonca.pt
  • Options – phrase translation fix

1.7.9

  • Next / Previous sorting apply option
  • Filter for Next / Previous sorting applpy
  • Help updates
  • Appearance /css updates
  • Admin columns sort fix
  • Media re-order

1.7.7

  • Next / Previous post link functionality update
  • Code improvements
  • Norvegian translation update – Bjorn Johansen bjornjohansen.no
  • Czech translation – dUDLAJ; Martin Kucera – http://jsemweb.cz/

1.7.4

  • Japanese translation – Git6 Sosuke Watanabe – http://git6.com/
  • Portuguese translation update – Pedro Mendon?a – http://www.pedromendonca.pt
  • Chinese translation – Coolwp coolwp.com@gmail.com

1.7.0

  • Swedish translation – Onlinebyran – http://onlinebyran.se
  • Portuguese translation – Pedro Mendon?a – http://www.pedromendonca.pt
  • AJAX save filter

1.6.8

  • Edit Gallery – image order fix
  • “re-order” menu item allow translation
  • Hungarian translation – Adam Laki – http://codeguide.hu/
  • Minor admin style improvements

1.6.5

  • Updates/Fixes
  • German translation
  • Norwegian (norsk) translation

1.6.4

  • DISALLOW_FILE_MODS fix, change the administrator capability to switch_themes

1.6.3

  • Updates/Fixes
  • Menu Walker nottices Fix

1.6.2

  • Updates/Fixes
  • Turkish – T?rk?e translation

1.6.1

  • Updates/Fixes
  • Menu Walker nottices Fix
  • Hebrew translation – Lunasite Team http://www.lunasite.co.il
  • Dutch translation – Denver Sessink

1.5.8

  • Updates/Fixes
  • Ignore Search queries when Autosort is ON
  • Text Instances translatable fix
  • Italian translation – Black Studio http://www.blackstudio.it
  • Spanish translation – Marcelo Cannobbio

1.5.7

  • Updates/Fixes
  • Using Capabilities instead levels
  • Updating certain code for WordPress 3.5 compatibility
  • Set default order as seccondary query order param

1.5.4

  • Updates/Fixes

1.5.1

  • Updates/Fixes

1.4.6

  • Get Previous / Next Posts Update

1.4.3

  • Small improvements

1.4.1

  • Re-Order Menu Item Appearance fix for update versions
  • Improved post order code

1.3.9

  • Re-Order Menu Item Appearance fix

1.3.8

  • Another Plugin conflict fix (thanks Steve Reed)
  • Multiple Improvments (thanks for support Video Geek – bestpocketvideocams.com)
  • Localisation Update (thanks Gabriel Reguly – ppgr.com.br/wordpress/)

1.1.2

  • Bug Fix

1.0.9

  • Admin will set the roles which can use the plugins (thanks for support Nick – peerpressurecreative.com)

1.0.2

  • Default order used if no sort occour

1.0.1

  • Post order support implemented

1.0

  • First stable version (thanks for support Andrew – PageLines.com)

0.9.

  • 最初のリリース