Question : wp get all post categories
Answered by : isaac-groisman-afzx9092x66j
$categories = get_categories();
foreach($categories as $category) { echo '<div class="col-md-4"><a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></div>';
}
Source : https://stackoverflow.com/questions/39704715/how-to-display-all-categories-in-wordpress | Last Update : Mon, 07 Jun 21