if( isset($_GET["s"]) ){
$args = array(
'post_type' => 'faq',
//'posts_per_page' => -1,
#'orderby' => 'menu_order',
's' => $_GET["s"]
);
}
else{
$category = array_shift(array_slice($categories, 0, 1));
$args = array(
'post_type' => 'faq',
'posts_per_page' => -1,
'orderby' => 'menu_order',
'tax_query' => array(
array(
'taxonomy' => 'faq-category',
'field' => 'slug',
'terms' => $category->slug
)
)
);
}
$query = new WP_Query( $args );
$posts = $query->posts;
if($posts){ ?>
Compatibiliteit van headsets, welke headset kan ik gebruiken?
} ?>