O-G Family & General Dentistry
Our Latest Patient Testimonial
I had a very pleasant and professional visit!
- Nicole M
5 out of 5 stars by Nicole M on 07/29/2020
function reviews_categories_links_shortcode() { global $post; $terms = get_the_terms($post->ID, 'categories'); if (empty($terms) || is_wp_error($terms)) { return ''; } $term_links = array_map(function($term) { $link = get_term_link($term); return !is_wp_error($link) ? '' . esc_html($term->name) . '' : ''; }, $terms); return implode(', ', $term_links); } add_shortcode('review_categories_links', 'reviews_categories_links_shortcode');