Advertisement
Guest User

Team Member with Sidebar

a guest
Apr 26th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.56 KB | None | 0 0
  1. <?php
  2. get_header();
  3. while (have_posts()) : the_post();
  4. ?>
  5.  
  6. <div class="team-single page-content col-md-9">
  7.     <div class="col-sm-6 col-md-4">
  8.         <div class="team">
  9.             <div class="member member-full">
  10.                 <div class="member-wrap">
  11.                     <div class="member-image"><?php the_post_thumbnail(get_the_ID()); ?></div>        
  12.                     <?php if(get_post_meta(get_the_ID(), $key = 'anps_team_social', $single = true)) : ?>
  13.                     <ul class="social social-minimal">
  14.                         <?php
  15.                         $icons = explode('|', get_post_meta(get_the_ID(), $key = 'anps_team_social', $single = true));
  16.                         foreach($icons as $item) :
  17.                             $icon_item = explode(';', $item);
  18.                         ?>
  19.                         <li><a href="<?php echo esc_url($icon_item[1]); ?>"><i class="fa <?php echo esc_attr($icon_item[0]); ?>"></i></a></li>
  20.                         <?php endforeach; ?>
  21.                     </ul>
  22.                     <?php endif; ?>
  23.                     <span class="member-title"><?php echo get_post_meta(get_the_ID(), $key = 'anps_team_subtitle', $single = true); ?></span>
  24.                     <div class="member-desc"><?php the_excerpt(); ?></div>
  25.                 </div>
  26.             </div>
  27.         </div>
  28.     </div>
  29.     <div class="col-sm-6 col-md-8"><?php the_content(); ?></div>
  30. </div>
  31. <aside class="sidebar sidebar-right col-md-3">
  32.     <?php dynamic_sidebar('sidebar');?>
  33. </aside>
  34. <?php endwhile; // end of the loop.
  35. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement