Esempio n. 1
0
 * @return [type]
 */
add_shortcode('zee_team', function ($atts, $content = null) {
    ob_start();
    $args = array('posts_per_page' => -1, 'post_type' => 'zee_team');
    $data = get_posts($args);
    if (count($data) > 0) {
        ?>
  <div class="team row">
    <?php 
        foreach ($data as $key => $value) {
            ?>
    <div  class="col-md-3 col-sm-4 col-xs-6">
      <div class="center team-member">
        <p><img class="img-circle img-thumbnail" src="<?php 
            echo zee_get_thumb_url($value->ID);
            ?>
" alt="?php echo $value->post_title; ?>"></p>
        <h4>
          <?php 
            echo $value->post_title;
            ?>
          <?php 
            if (get_post_meta($value->ID, 'team_designation', true) != '') {
                ?>
          <br><small class="designation muted"><?php 
                echo get_post_meta($value->ID, 'team_designation', true);
                ?>
</small>
          <?php 
            }
Esempio n. 2
0
  ob_start();


  $args = array(
    'posts_per_page' => -1,
   'post_type'      =>  'zee_team'
   );


  $data = get_posts( $args );
  if(count($data)>0){ ?>
  <div class="team row">
    <?php foreach ($data as $key => $value) { ?>
    <div  class="col-md-3 col-sm-4 col-xs-6">
      <div class="center team-member">
        <p><img class="img-circle img-thumbnail" src="<?php echo zee_get_thumb_url($value->ID) ?>" alt="?php echo $value->post_title; ?>"></p>
        <h4>
          <?php echo $value->post_title; ?>
          <?php if(get_post_meta($value->ID, 'team_designation', true)!=''){ ?>
          <br><small class="designation muted"><?php echo get_post_meta($value->ID, 'team_designation', true)   ?></small>
          <?php } ?>
        </h4>

        <p><?php echo $value->post_content; ?></p>
        <div class="social-btns clearfix">
          <?php if(get_post_meta($value->ID, 'team_facebook', true)!=''){ ?>
          <a class="btn btn-social btn-facebook" href="<?php echo  get_post_meta($value->ID, 'team_facebook', true)   ?>"><i class="icon-facebook"></i></a>
          <?php } ?>
          <?php if(get_post_meta($value->ID, 'team_twitter', true)!=''){ ?>
          <a class="btn btn-social btn-twitter" href="<?php echo get_post_meta($value->ID, 'team_twitter', true)?>"><i class="icon-twitter"></i></a>
          <?php } ?>