if(!is_admin())add_filter('pre_get_posts','my_get_postss');
function my_get_postss($query){
if((is_category()||is_home())&&$query->is_main_query()){
$query->set('post_type',array('post','recipes'));
$query->set('posts_per_page',6);
}
return $query;
}

Nye oppskrifter

Mammas leverpostei

Postet 20 - des - 2017

0 Kommentarer

Ny Post

5 Delicious Ways To...

Postet 15 - jul - 2019

1 Kommentar