<?php $terms = get_terms( 'resources-category' ); foreach ( $terms as $term ) : $class99=''; if($_GET['cat']==$term->slug) $class99='active';?> <a href="/resources-list/page/1/?getby=cat&cat=<?php echo esc_attr( $term->slug ); ?>" class="btn rounded-pill <?php echo $class99; ?>"> <?php echo esc_html( $term->name ); ?></a> <?php endforeach; ?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter