Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $categories = wp_get_post_categories(get_the_ID());
- foreach($categories as $category){
- echo '<div class="col-md-4"><a href="' . get_category_link($category) . '">' . get_cat_name($category) . '</a></div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement