Answers for "get all post categories wordpress"

0

wp get all post categories

$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>';
}
Posted by: Guest on May-31-2021
0

wordpress display post categories

<?php the_terms( $post->ID, 'topics', 'Topics: ', ', ', ' ' ); ?>
Posted by: Guest on November-27-2020

Code answers related to "get all post categories wordpress"

Browse Popular Code Answers by Language