From 8ec3d53bfe88d285e01b013e8115abd5fb5e1c5e Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 27 Jun 2021 18:57:34 +0900 Subject: [PATCH] =?UTF-8?q?WP=20PLUGIN=E3=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ・選択カスタムフィールドをオートコンプリートに変更 ・ソート対象名:「通常」から「最新の投稿」に変更 --- archive-post-order-plus.php | 2 +- class/class.apop.apop_post.php | 6 +++--- class/class.apop.apop_ui.php | 1 + class/class.apop.order.php | 2 +- css/apop-style.css | 7 +++++++ js/apop-style.js | 2 ++ readme.txt | 29 +++++++++++++++++------------ template/order.php | 4 ++-- uninstall.php | 4 ++-- util/apop-order-setting.php | 2 +- 10 files changed, 37 insertions(+), 22 deletions(-) diff --git a/archive-post-order-plus.php b/archive-post-order-plus.php index b8c1e12..200754a 100644 --- a/archive-post-order-plus.php +++ b/archive-post-order-plus.php @@ -4,7 +4,7 @@ Plugin Name: Archive Post Order Plus Plugin URI: https://develop.n-k-y.net/wordpress/wp_plugin/apop/ Author: NBK45 Author URI: https://develop.n-k-y.net -Description: 通常表示、検索表示、タクソノミー毎に投稿の表示順を設定するプラグイン +Description: 「最新の投稿」「検索結果」「カテゴリー」「タグ」「カスタム分類」の投稿表示順を設定するプラグイン Version: 1.1.3 License: GPLv2 */ diff --git a/class/class.apop.apop_post.php b/class/class.apop.apop_post.php index 7075010..3192b0d 100644 --- a/class/class.apop.apop_post.php +++ b/class/class.apop.apop_post.php @@ -38,7 +38,7 @@ if ( ! class_exists( 'APOP_POST' ) ) { } public function insert_meta_fields() { - //通常ソート + //最新の投稿ソート if ( get_option( '_apop_normal_order' ) == '1' ) { $this->create_order_field_data( get_option( '_apop_normal_order_param' ), 'normal' ); } @@ -50,7 +50,7 @@ if ( ! class_exists( 'APOP_POST' ) ) { $this->create_order_tax_field_data( get_option( '_apop_tax_order_param' ) ); $this->labels = array( - 'normal' => '通常', + 'normal' => '最新の投稿', 'search' => '検索', 'tax' => 'カテゴリー、タグ、カスタム分類', ); @@ -139,7 +139,7 @@ if ( ! class_exists( 'APOP_POST' ) ) { } private function get_update_meta_fields() { - //通常ソート + //最新の投稿ソート $this->create_order_field_data( get_option( '_apop_normal_order_param' ), 'normal', true ); //検索ソート $this->create_order_field_data( get_option( '_apop_search_order_param' ), 'search', true ); diff --git a/class/class.apop.apop_ui.php b/class/class.apop.apop_ui.php index d852d68..08d2366 100644 --- a/class/class.apop.apop_ui.php +++ b/class/class.apop.apop_ui.php @@ -365,6 +365,7 @@ value="' . esc_html( $sort_num ) . '"> echo ' +
値タイプ: