Latest FAQs
'faq',
'showposts' => 5
)
);
while ($services->have_posts()) : $services->the_post(); ?>
'faq_category', 'orderby' => 'term_order') );
// Loop through all the returned terms
foreach ( $categories as $category ):
// set up a new query for each category, pulling in related posts.
$services = new WP_Query(
array(
'post_type' => 'faq',
'showposts' => -1,
'order'=>'ASC',
'tax_query' => array(
array(
'taxonomy' => 'faq_category',
'terms' => array( $category->slug ),
'field' => 'slug'
)
)
)
);
?>
name; ?>
have_posts()) : $services->the_post(); ?>