$cat->name, 'slug' => $cat->slug, 'link' => get_category_link($c) );
}
return $cats;
}
function antonine_get_categories_links($id){
$html = array();
$cats = antonine_get_categories($id);
foreach($cats as $cat){
$html[] = "" . $cat['name'] . "";
}
if(count($html)==0){
$html[] = esc_html(__("No Categories", "antonine"));
}
return $html;
}
function antonine_author_meta() {
if(get_theme_mod("antonine_author")=="on"){
global $post;
?>
ID));
?>
term_id;
}
?> $id, 'posts_per_page' => -1) );
$authors = array();
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
$authors[] = get_the_author_meta('ID');
}
}
wp_reset_postdata();
return $authors;
}