Show Taxonomy as Unordered List
<?php get_header(); ?>
</div></div>
<style>
#main{
padding: 0;
}
</style>
<div id="gallery-page">
<section class="gallery-banner">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h1> <?php single_term_title(); ?></h1>
</div>
</div>
</div>
</section>
<div class="post-content main-content">
<div class="container">
<div class="row">
<div class="col-md-3">
<div class="gallery-categories-list">
<h2>Categories</h2>
<?php
$taxonomy = 'product_gallery_categories';
$show_count = true;
$pad_counts = false;
$hierarchical = true;
$title = '';
$args = array(
'taxonomy' => $taxonomy,
'show_count' => $show_count,
'pad_counts' => $pad_counts,
'hierarchical' => $hierarchical,
'title_li' => $title
);
?>
<ul>
<?php wp_list_categories( $args ); ?>
</ul>
</div>
</div>
<div class="col-md-9">
<div class="gallery-item-wrap">
<?php if ( have_posts() ) {
while ( have_posts() ) {
the_post(); ?>
<div class="col-md-4">
<a href="<?php the_permalink();?>">
<div class="gallery-item">
<div class="gallery-item-img">
<?php $image = get_field('image1');?>
<img src="<?php echo $image['url']; ?>">
</div>
<div class="gallery-item-title">
<?php the_title(); ?>
</div>
</div>
</a>
</div>
<?php
} // end while
} // end if
?>
</div>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
<?php
// Omit closing PHP tag to avoid "Headers already sent" issues.