WP PLUGIN アーカイブページの投稿表示順設定
・タクソノミーの1ページ表示数をタクソノミー毎のなるよう修正 ・タクソノミーの1ページ表示数変更に合わせてJSを修正 ・タクソノミーの1ページ表示数変更に合わせてテンプレートファイル分割 ・バグ修正:タームIDが無い存在しない場合にpre_get_postでセットしないよう修正 ・バグ修正:通常と検索のpre_get_postでメタキー指定が漏れていたので追加 ・バグ修正:カスタムタクソノミーのpre_get_postでメタキー指定が異なっていたので修正
This commit is contained in:
@@ -22,6 +22,9 @@ License: GPLv2
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
define( 'APOP_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
||||
define( 'APOP_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
|
||||
|
||||
//メイン処理のクラスをインスタンス化
|
||||
require_once __DIR__ . '/class/class.apop.order.php';
|
||||
require_once __DIR__ . '/class/class.apop.ui.php';
|
||||
@@ -31,10 +34,9 @@ $APOP = new APOP;
|
||||
//CSS, JSの読み込み
|
||||
add_action( 'admin_enqueue_scripts', 'register_my_styles' );
|
||||
function register_my_styles() {
|
||||
$plugin_url = plugin_dir_url( __FILE__ );
|
||||
wp_enqueue_style( 'hrc_post_style', $plugin_url . 'css/apop-style.css' );
|
||||
wp_enqueue_style( 'hrc_post_style', APOP_PLUGIN_URL . 'css/apop-style.css' );
|
||||
wp_enqueue_script( 'jquery-ui-sortable' );
|
||||
wp_enqueue_script( 'post-sort-cat-order_js', $plugin_url . 'js/apop-style.js' );
|
||||
wp_enqueue_script( 'post-sort-cat-order_js', APOP_PLUGIN_URL . 'js/apop-style.js' );
|
||||
}
|
||||
|
||||
$APOP->set_query();
|
||||
|
||||
Reference in New Issue
Block a user