Advertisement
cipher87

Taxonomy Portfolio Entries

Feb 9th, 2021
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.59 KB | None | 0 0
  1. <?php
  2.     if ( ! defined('ABSPATH') ){ die(); }
  3.    
  4.     global $avia_config;
  5.  
  6.     /*
  7.      * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
  8.      */
  9.      get_header();
  10.  
  11.      echo avia_title( array( 'title' => avia_which_archive() ) );
  12.      
  13.      do_action( 'ava_after_main_title' );
  14.      ?>
  15.  
  16.         <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' );?>'>
  17.  
  18.             <div class='container'>
  19.  
  20.                 <main class='template-page template-portfolio content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper( array( 'context' => 'content', 'post_type' => 'portfolio' ) );?>>
  21.  
  22.                     <div class="entry-content-wrapper clearfix">
  23.  
  24.                         <div class="category-term-description">
  25.                             <?php echo term_description(); ?>
  26.                         </div>
  27.  
  28.                     <?php
  29.  
  30.                         $grid = new avia_post_grid(
  31.                                         array( 
  32.                                             'linking'           => '',
  33.                                             'columns'           => '3',
  34.                                             'contents'          => 'title',
  35.                                             'sort'              => 'no',
  36.                                             'paginate'          => 'yes',
  37.                                             'set_breadcrumb'    => false,
  38.                                         ));
  39.  
  40.                         $grid->use_global_query();
  41.                         echo $grid->html( '' );
  42.  
  43.                     ?>
  44.                     </div>
  45.  
  46.                 <!--end content-->
  47.                 </main>
  48.                 <?php
  49.  
  50.                 //get the sidebar
  51.                 $avia_config['currently_viewing'] = 'portfolio';
  52.                 get_sidebar();
  53.  
  54.                 ?>
  55.  
  56.             </div><!--end container-->
  57.  
  58.         </div><!-- close default .container_wrap element -->
  59.  
  60. <?php
  61.     get_footer();
  62.        
  63.        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement