Hi Christina,
Try this code in your child theme’s functions.php file.
add_filter('geodir_details_taxonomies_output', 'geodir_details_taxonomies_output_as_ul', 10, 4);
function geodir_details_taxonomies_output_as_ul($taxonomies, $post_type,$listing_label, $listing_label_uc) {
if (!geodir_is_page('detail')) {
return $taxonomies;
}
$post_taxonomy = $post_type . 'category';
if (isset($taxonomies[$post_taxonomy])) {
$cats = str_replace(__("$listing_label_uc Category:", 'geodirectory'), '', $taxonomies[$post_taxonomy]);
$cats = str_replace("</a> and <a", "</a>,<a", $cats);
$cats = explode(',', $cats);
$output = "";
if ($cats) {
$output .= "<ul class='gd_tax_cat_ul'>";
foreach ($cats as $cat) {
$output .= "<li>$cat</li>";
}
$output .= "</ul>";
}
$taxonomies[$post_taxonomy] = $output;
}
if (isset($taxonomies[$post_type . '_tags'])) {
$cats = str_replace(__("$listing_label_uc Tags:", 'geodirectory'), '', $taxonomies[$post_type . '_tags']);
$cats = str_replace("</a> and <a", "</a>,<a", $cats);
$cats = explode(',', $cats);
$output = "";
if ($cats) {
$output .= "<ul class='gd_tax_tags_ul'>";
foreach ($cats as $cat) {
$output .= "<li>$cat</li>";
}
$output .= "</ul>";
}
$taxonomies[$post_type . '_tags'] = $output;
}
return $taxonomies;
}
Let me know how that goes.
Thanks