ARCHIVE POST ORDER PLUS

翻訳対応
検索のカスタムフィールド選択バグ修正
This commit is contained in:
2021-07-11 17:40:23 +09:00
parent ae93196007
commit b8dcf1c44c
16 changed files with 388 additions and 105 deletions
+6 -5
View File
@@ -30,7 +30,7 @@ if ( ! class_exists( 'APOP_POST' ) ) {
public function add_meta_fields() {
$target_posts = $this->set_post_types();
foreach ( $target_posts as $target_post ) {
add_meta_box( 'apo_custom_fields', 'APO+カスタムフィールド', array(
add_meta_box( 'apo_custom_fields', __( 'APO + custom field settings', APOP_DOMAIN ), array(
$this,
'insert_meta_fields'
), $target_post, 'normal' );
@@ -43,16 +43,17 @@ if ( ! class_exists( 'APOP_POST' ) ) {
$this->create_order_field_data( get_option( '_apop_normal_order_param' ), 'normal' );
}
//検索ソート
if ( get_option( '_apop_tax_sort_type' ) == '1' ) {
if ( get_option( '_apop_search_order' ) == '1' ) {
$this->create_order_field_data( get_option( '_apop_search_order_param' ), 'search' );
}
//カテゴリー、タグ、カスタム分類
$this->create_order_tax_field_data( get_option( '_apop_tax_order_param' ) );
$this->labels = array(
'normal' => '最新の投稿',
'search' => '検索',
'tax' => 'カテゴリー、タグ、カスタム分類',
'normal' => __('Your latest posts', APOP_DOMAIN),
'search' => __('Search', APOP_DOMAIN),
'tax' => __('Category, Tag, Custom Taxonomy', APOP_DOMAIN),
);
require_once self::TEMPLATE_DIR . 'setting_post_custom_field.php';