Tag Info

Hot answers tagged

2

You can use get_term_by() for this <?php $term_id = array_pop(get_sub_field('sector_selector')); $catinfo = get_term_by( 'id', $term_id, 'name_of_the_taxonomy' ); print $catinfo->slug;


1

I'm not exactly sure where you want your clearfix to come in, but you should be able to do something like this: <div class="row"> <?php $libargs=array( 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 0, 'exclude' => array(16, 20, 22,25, 27, 28, ...


1

has_term must be used inside the loop. If you use it outside the loop you have to pass the post ID or post object you want to check. In the single.php file put your code inside the loop to check the current post: <?php get_header(); while(have_post) { the_post(); ?> <div class="non-home-parallax product-listing-parallax" style=" ...



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