WP PLUGIN ソート対象拡張
・通常、検索、タクソノミーにソート用カスタムフィールドの設定入力欄を追加 ・通常と検索にカスタムフィールド検索処理を実装 ・タクソノミーに通常+カスタムフィールドのメニューを追加 ・タクソノミーに通常+カスタムフィールドとドラッグソートの切り替え用ラジオボタンを追加
This commit is contained in:
@@ -125,10 +125,26 @@ if ( ! class_exists( 'APOP' ) ) {
|
||||
//-------------------------------------
|
||||
// タクソノミー
|
||||
// ------------------------------------
|
||||
$tax_sort_type = APOP_UI::input_post_filter( '_apop_tax_sort_type', 'array' );
|
||||
$apop_tax_order_param = APOP_UI::input_post_filter( '_apop_tax_order_param', 'array' );
|
||||
$apop_post_category = APOP_UI::input_post_filter( '_apop_post_category', 'array' );
|
||||
$apop_post_post_tag = APOP_UI::input_post_filter( '_apop_post_post_tag', 'array' );
|
||||
$apop_post_tax = APOP_UI::input_post_filter( '_apop_post_tax', 'array' );
|
||||
|
||||
//カテゴリーのソートタイプ設定
|
||||
if ( $tax_sort_type ) {
|
||||
check_admin_referer( 'sh_options' );
|
||||
update_option( '_apop_tax_sort_type', $tax_sort_type );
|
||||
require_once self::TEMPLATE_DIR . 'success.php';
|
||||
}
|
||||
|
||||
//カテゴリーの標準ソートパラメータ
|
||||
if ( $apop_tax_order_param ) {
|
||||
check_admin_referer( 'sh_options' );
|
||||
update_option( '_apop_tax_order_param', $apop_tax_order_param );
|
||||
require_once self::TEMPLATE_DIR . 'success.php';
|
||||
}
|
||||
|
||||
//カテゴリーの投稿表示順設定
|
||||
if ( $apop_post_category ) {
|
||||
check_admin_referer( 'sh_options' );
|
||||
|
||||
Reference in New Issue
Block a user