2016/17/12
acf(advanced custom field)とMagicfield2を同時に使うとFatal errorになる以下のコードをfunction.phpに挿入
function SearchFilter($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','SearchFilter');
以下のコードをfunction.phpに挿入
function SearchFilter($query) { if ($query->is_search) { $query->set('post_type', 'post'); } return $query; } add_filter('pre_get_posts','SearchFilter');
質問やご指摘など気軽にどうぞ