Advertisement
cipher87

Taxonomy Portfolio Entries

Feb 10th, 2021
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 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.  
  12.      echo avia_title(array('title' => avia_which_archive()));
  13.      
  14.      do_action( 'ava_after_main_title' );
  15.      ?>
  16.  
  17.         <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
  18.  
  19.             <div class='container'>
  20.  
  21.                 <main class='template-page template-portfolio content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'portfolio'));?>>
  22.  
  23.                     <div class="entry-content-wrapper clearfix">
  24.  
  25.                         <div class="category-term-description">
  26.                             <?php echo term_description(); ?>
  27.                         </div>
  28.  
  29.                     <?php
  30.  
  31.                     $grid = new avia_post_grid(array(   'linking'   => '',
  32.                                                         'columns'   => '3',
  33.                                                         'contents'  => 'title',
  34.                                                         'sort'      => 'no',
  35.                                                         'paginate'  => 'yes',
  36.                                                         'set_breadcrumb' => false,
  37.                                                 ));
  38.                     $grid->use_global_query();
  39.                     echo $grid->html();
  40.  
  41.                     ?>
  42.                     </div>
  43.  
  44.                 <!--end content-->
  45.                 </main>
  46.                 <?php
  47.  
  48.                 //get the sidebar
  49.                 $avia_config['currently_viewing'] = 'portfolio';
  50.                 get_sidebar();
  51.  
  52.                 ?>
  53.  
  54.             </div><!--end container-->
  55.  
  56.         </div><!-- close default .container_wrap element -->
  57.  
  58.  
  59. <?php
  60.         get_footer();
  61.        
  62.        
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement