taxonomy-portfolio-cat.php (2685B)
1 <?php 2 /** 3 * The template for displaying archive pages 4 * 5 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ 6 * 7 * @package appside 8 */ 9 10 get_header(); 11 ?> 12 <div id="primary" class="content-area archive-page-content-area padding-120"> 13 <main id="main" class="site-main"> 14 <div class="container"> 15 <div class="row"> 16 <?php if ( have_posts() ) : ?> 17 <?php 18 /* Start the Loop */ 19 while ( have_posts() ) : 20 the_post(); 21 ?> 22 <div class="col-lg-4 col-md-6"> 23 <div class="single-portfolio-style-01"> 24 <?php if (has_post_thumbnail()):?> 25 <div class="thumbnail"> 26 <?php 27 the_post_thumbnail( 'appside_portfolio', array( 28 'alt' => the_title_attribute( array( 29 'echo' => false, 30 ) ), 31 ) ); 32 ?> 33 </div> 34 <?php endif;?> 35 <div class="content"> 36 <a href="<?php the_permalink();?>"> <h4 class="title"><?php the_title();?></h4></a> 37 <div class="cats"> 38 <?php 39 $all_portfolio_cat = get_the_terms(get_the_ID(),'portfolio-cat'); 40 foreach ( $all_portfolio_cat as $term ) { 41 printf( '<a href="%1$s">%2$s</a>', get_term_link( $term, 'portfolio-cat' ), esc_html( $term->name ) ); 42 } 43 ?> 44 </div> 45 </div> 46 </div> 47 </div> 48 <?php endwhile;?> 49 <div class="col-lg-12 text-center"> 50 <div class="blog-pagination"> 51 <?php Appside()->post_pagination();?> 52 </div> 53 </div> 54 <?php 55 else : 56 get_template_part( 'template-parts/content', 'none' ); 57 endif; 58 ?> 59 </div> 60 </div> 61 </main><!-- #main --> 62 </div><!-- #primary --> 63 64 <?php 65 66 get_footer();