'#06D6A0', 'medio-ambiente-energia-y-naturaleza' => '#06D6A0', 'environnement-energie-et-nature' => '#06D6A0', 'health-and-hygiene' => '#323DA5', 'salud-e-higiene' => '#323DA5', 'sante-et-hygiene' => '#323DA5', 'basic-rights-and-equality' => '#FFD166', 'derechos-basicos-e-igualdad' => '#FFD166', 'droits-fondamentaux-et-egalite' => '#FFD166', 'economy-jobs-and-business' => '#D33C62', 'economia-trabajo-y-negocio' => '#D33C62', 'economie-emplois-et-entreprises' => '#D33C62', 'science-finance-and-innovation' => '#EE7B72', 'ciencia-finanzas-e-innovacion' => '#EE7B72', 'science-finance-et-innovation' => '#EE7B72', 'societes-governance-and-conflict' => '#844DEE', 'sociedades-gobernanza-y-conflicto' => '#844DEE', 'societes-gouvernance-et-conflits' => '#844DEE', ); ?>
ID); } $args = array( 'post_type' => 'post', 'posts_per_page' => -1, 'author' => $author_id ); $query = new WP_Query( $args ); $post_ids = wp_list_pluck( $query->posts, 'ID' ); $category_count = array(); // Count occurrences of each category foreach ( $post_ids as $post_id ) { $categories = wp_get_post_terms($post_id, 'category', array('fields' => 'ids')); foreach ( $categories as $category_id ) { if ( isset( $category_count[ $category_id ] ) ) { $category_count[ $category_id ]++; } else { $category_count[ $category_id ] = 1; } } } arsort( $category_count ); // Sort by most frequent $most_frequent_category_id = key( $category_count ); // Get the ID of the most frequent category $most_frequent_category = get_category( $most_frequent_category_id ); // Get the category object for the most frequent category if ( is_object( $most_frequent_category ) && property_exists( $most_frequent_category, 'slug' ) ) { if ( array_key_exists( $most_frequent_category->slug, $category_colors ) ) { $circle_color = $category_colors[ $most_frequent_category->slug ]; // Get the color for the most frequent category } else { $circle_color = '#CFCFCF'; // Default to black if the category color is not defined } } else { $circle_color = '#CFCFCF'; // Default to black if the most frequent category is not an object or has no slug property } ?>
<?php echo $author_name; ?>
<?php echo $author_name; ?>

Check out the author's

latest articles

JohnAkecPic2015.jpg

5 min

Using blogs, humor and anecdotes to influence development policy

Evidence-Based Policy
Hacklinkbetsat
betsat
betsat
holiganbet
holiganbet
holiganbet
Jojobet giriş
Jojobet giriş
Jojobet giriş
casibom giriş
casibom giriş
casibom giriş
xbet
xbet
xbet
grandpashabet
grandpashabet
grandpashabet
İzmir psikoloji
creative news
Digital marketing
radio kalasin
radinongkhai
gebze escort
casibom
casibom
mavibet
extrabet
betpublic
betpublic giriş
matadorbet
deneme bonusu veren siteler
casibom twitter
casibom
casibom
casibom güncel giriş
Kaliteli Kumar Siteleri
Türkçe Altyazılı Porno
casibom
Casibom Giriş
child porn deneme bonusu
porn bahis siteleri deneme
child porn deneme bonusu
grandpashabet