diff --git a/templates/archive/fields/category.php b/templates/archive/fields/category.php index 1fd71bdd18..842cedf246 100644 --- a/templates/archive/fields/category.php +++ b/templates/archive/fields/category.php @@ -2,18 +2,16 @@ /** * @author wpWax * @since 6.6 - * @version 7.4.0 + * @version 7.8.3 */ if ( ! defined( 'ABSPATH' ) ) exit; - -$default_icon = 'las la-folder-open'; ?>
loop['cats'] ) ) { $term_icon = get_term_meta( $listings->loop['cats'][0]->term_id, 'category_icon', true ); - $term_icon = $term_icon ? $term_icon : $default_icon; + $term_icon = $term_icon ? $term_icon : $icon; $term_link = esc_url( get_term_link( $listings->loop['cats'][0]->term_id, ATBDP_CATEGORY ) ); $term_label = $listings->loop['cats'][0]->name; ?> @@ -27,7 +25,7 @@ loop['cats'], 1) as $cat) { $term_icon = get_term_meta( $cat->term_id, 'category_icon', true ); - $term_icon = $term_icon ? $term_icon : $default_icon; + $term_icon = $term_icon ? $term_icon : $icon; $term_link = esc_url( ATBDP_Permalink::atbdp_get_category_page( $cat ) ); $term_link = esc_url( get_term_link( $cat->term_id, ATBDP_CATEGORY ) ); $term_label = $cat->name; @@ -45,8 +43,8 @@ } } else { ?> - + -
\ No newline at end of file + diff --git a/templates/archive/fields/view_count.php b/templates/archive/fields/view_count.php index 6a904e247a..6a93edae89 100644 --- a/templates/archive/fields/view_count.php +++ b/templates/archive/fields/view_count.php @@ -2,10 +2,10 @@ /** * @author wpWax * @since 6.6 - * @version 7.4.0 + * @version 7.8.3 */ if ( ! defined( 'ABSPATH' ) ) exit; ?> -
loop['post_view']) ? esc_html( $listings->loop['post_view'] ) : 0;?>
+
loop['post_view']) ? esc_html( $listings->loop['post_view'] ) : 0;?>