* @since 2.2.0
* @uses template-parts/sitemap
*/
?>
Sections
Pages
'',
'title_li' => '',
)
);
?>
Authors
Posts by category
'',
'hide_empty' => 'true',
);
$cats = get_categories( $catargs );
foreach ( $cats as $catsingle ) {
echo '' . esc_html( $catsingle->cat_name ) . '
';
echo '';
$args = array(
'category' => $catsingle->cat_ID,
'posts_per_page' => - 1,
);
$query = new WP_Query( $args );
while ( $query->have_posts() ) {
$query->the_post();
$category = get_the_category();
if ( $category[0]->cat_ID === $catsingle->cat_ID ) {
echo '- ' . esc_html( get_the_title() ) . '
';
}
}
echo '
';
}