「アフリカ」14か国 68銘柄


<?php
$categories = get_categories(‘child_of=209’);
foreach($categories as $category) {
$catId = $category->cat_ID;
$catName = esc_attr($category->cat_name);
$catSlug = esc_attr($category->slug);
$catLink = esc_url(get_category_link($catId));
if ($catLink && $catName) {
echo ‘<a class=”flags catid’ . $catId . ‘” href=”‘ . $catLink . ‘”><img src=”https://coffeezuki.com/wp-content/uploads/flag/’.$catSlug.’.png” alt=”‘.$catName.'” width=”60″ ></a>’;
}
}
?>