WP PLUGIN 

・選択カスタムフィールドをオートコンプリートに変更
・ソート対象名:「通常」から「最新の投稿」に変更
This commit is contained in:
2021-06-27 18:57:34 +09:00
parent 49087f4950
commit 8ec3d53bfe
10 changed files with 37 additions and 22 deletions
+3 -3
View File
@@ -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 );