質問編集履歴

1

コードにミスがあったので修正しました。

2018/08/14 03:17

投稿

yamana
yamana

スコア118

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', 'doc' );
61
+ $query->set( 'post_type', 'mag' );
62
62
 
63
63
  }
64
64