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 );
+1
View File
@@ -365,6 +365,7 @@ value="' . esc_html( $sort_num ) . '">
echo '<input type="text" class="select-custom-field-input custom_field_key_select" name="' . esc_attr( $name_meta_key ) . '" . value="' . esc_attr( $custom_field_val_1 ) . '" required>
<input type="text" class="custom_field_key" name="' . esc_attr( $name_meta_key ) . '" value="' . esc_attr( $custom_field_val_2 ) . '" required>
</div>
<div class="custom-field-select-alert"></div>
<div class="sort-custom-field-inner">
<div class="sort-custom-field-inner-label">値タイプ:</div>
<label class="sort-custom-field-text-label">
+1 -1
View File
@@ -72,7 +72,7 @@ if ( ! class_exists( 'APOP' ) ) {
public function show_option_page() {
//-------------------------------------
// 通常表示
// 最新の投稿表示
// ------------------------------------
$apop_normal_order = APOP_UI::input_post_filter( '_apop_normal_order', 'str' );
$apop_normal_order_param = APOP_UI::input_post_filter( '_apop_normal_order_param', 'array' );