[xml] blog

Viewer

  1. <?php $sticky_class = is_sticky()?'sticky':''?>
  2.  
  3. <article id="post-<?php the_ID(); ?><?php post_class('post-wrap '. $sticky_class)?>  >
  4.                
  5.                 <?php if( ( has_post_format('audio') || has_post_format('gallery') || has_post_format('video' ) || has_post_thumbnail() ) && tripgo_blog_show_media() == 'yes' ) : ?>
  6.                         <div class="post-media">
  7.                                 <?php 
  8.                                         if( has_post_format('audio') ){
  9.  
  10.                                                get_template_part( 'template-parts/parts/audio' );
  11.  
  12.                                         }elseif( has_post_format('gallery') ){
  13.  
  14.                                                 get_template_part( 'template-parts/parts/gallery' );
  15.  
  16.                                         }elseif( has_post_format('video' )){
  17.  
  18.                                                 get_template_part( 'template-parts/parts/video' );
  19.  
  20.                                         }elseif(has_post_thumbnail()){
  21.  
  22.                                                 get_template_part( 'template-parts/parts/thumbnail' );
  23.  
  24.                                 }
  25.                                 ?>
  26.                         </div>
  27.                 <?php endif; ?>
  28.  
  29.                 <?php if( tripgo_blog_show_title() == 'yes' ){
  30.                         get_template_part( 'template-parts/parts/title' );
  31.                 } ?>
  32.                
  33.                 <?php get_template_part( 'template-parts/parts/meta' )?>
  34.                
  35.  
  36.                 <?php if( tripgo_blog_show_excerpt() == 'yes' ){ ?>
  37.                         <div class="post-excerpt">
  38.                                 <?php get_template_part( 'template-parts/parts/excerpt' )?>
  39.                         </div>
  40.                 <?php } ?>
  41.  
  42.                
  43.                 <?php if( tripgo_blog_show_readmore() == 'yes' ){
  44.                         get_template_part( 'template-parts/parts/readmore' )
  45.                 } ?>
  46.                
  47.                
  48. </article>
  49.  
  50.  
  51.  

Editor

You can edit this paste and save as new:


File Description
  • blog
  • Paste Code
  • 03 Oct-2023
  • 1.31 Kb
You can Share it: