Hi Bernward,
Category & tags values are displayed via PHP format “%l”. You can use following PHP snippet to replace “and” to “,”.
/**
* Replace ", and", " and " in listing category/tags value.
*/
function gd_snippet_200210_taxonomy_replace_and( $html, $location, $cf, $p = '', $output = '' ) {
if ( ! empty( $html ) && ( empty( $p->options['base_id'] ) || ( ! empty( $p->options['base_id'] ) && $p->options['base_id'] == 'gd_single_taxonomies' ) ) ) {
$replace = ', '; // Replace string.
$html = str_replace( array( '</a>' . sprintf( __( '%1$s, and %2$s' ), '', '' ) . '<a', sprintf( '</a>' . __( '%1$s and %2$s' ) . '<a', '', '' ) ), array( '</a>' . $replace . '<a', '</a>' . $replace . '<a' ), $html );
}
return $html;
}
// Listing pages
add_filter( 'geodir_custom_field_output_tags', 'gd_snippet_200210_taxonomy_replace_and', 20, 5 );
add_filter( 'geodir_custom_field_output_categories', 'gd_snippet_200210_taxonomy_replace_and', 20, 5 );
add_filter( 'geodir_custom_field_output_taxonomy', 'gd_snippet_200210_taxonomy_replace_and', 20, 5 );
// Detail page gd_single_taxonomies
add_filter( 'wp_super_duper_widget_output', 'gd_snippet_200210_taxonomy_replace_and', 20, 4 );
Regards,
Kiran