1

What if you started your index at 1, instead of 0? Change: $i=0; To: $i=1; You might have checked, but you aren't having an CSS / layout issues, are you?


1

You can create taxonomy-cat-cpt.php, and inside it just use: <?php get_template_part( 'archive-cpt' ); ?> Then they'll both use the same template. Then inside archive-cpt.php, if you use the_archive_title() archive the_archive_description() it will display the appropriate title and description automatically based on whether you're viewing the ...


1

Do you want changes in this :--- get_field('4', $term->term_id) If this get_field('your_acf_field_slug_name', 'term_'.$term->term_id); or get_field('your_acf_field_slug',$term->term_id). You can use this reference also :--- https://support.advancedcustomfields.com/forums/topic/get-custom-taxonomy-field-value/ // Yours worked Answer $icon = ...


1

my final code that worked quiet brilliant $va_category_HTML .='<li '.$carrentActiveClass.'><a href="' . esc_url( $term_link ) . '">' . $term->name . '</a>'; $icon = get_field('firma_image', $term->taxonomy . '_' . $term->term_id); $va_category_HTML .= sprintf('<img src="%s" />',...


Only top voted, non community-wiki answers of a minimum length are eligible