diff --git a/templates/parts/property-categories.php b/templates/parts/property-categories.php index 81485e83..de254b03 100755 --- a/templates/parts/property-categories.php +++ b/templates/parts/property-categories.php @@ -1,6 +1,10 @@ get_id(), 'property_category', '
' . esc_html__( 'Categories:', 'opalestate-pro' - ) . - '', ', ', '
' ); +echo get_the_term_list( + $property->get_id(), + 'property_category', + '
' . esc_html__( 'Categories:', 'opalestate-pro' ) . '', + ', ', + '
' +); diff --git a/templates/parts/property-types.php b/templates/parts/property-types.php index 43dd5b00..542ea0e9 100755 --- a/templates/parts/property-types.php +++ b/templates/parts/property-types.php @@ -1,5 +1,10 @@ get_id(), 'opalestate_types', '
' . esc_html__( 'Types:', 'opalestate-pro' ) . '', - ', ', '
' ); +echo get_the_term_list( + $property->get_id(), + 'opalestate_types', + '
' . esc_html__( 'Types:', 'opalestate-pro' ) . '', + ', ', + '
' +);