質問編集履歴
1
コードにミスがあったので修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
if ( !is_admin() && $query->is_main_query() && $query->is_search() ) {
|
60
60
|
|
61
|
-
$query->set( 'post_type', '
|
61
|
+
$query->set( 'post_type', 'mag' );
|
62
62
|
|
63
63
|
}
|
64
64
|
|