Advertisement
Guest User

Untitled

a guest
May 29th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. <div class="row clearfix">
  2. <?php
  3.  
  4. $custom_members_args = array(
  5. 'post_type' => 'dw_custom_members', //name of my custom post
  6. 'post_status' => array('publish'),
  7. 'order' => 'DESC',
  8. 'category_name' => 'team',
  9. // 'posts_per_page' => 2,
  10. );
  11.  
  12. $custom_members_query = new WP_Query($custom_members_args);
  13.  
  14. if ($custom_members_query->have_posts()) {
  15. while ($custom_members_query->have_posts()) {
  16. $custom_members_query->the_post();
  17. ?>
  18.  
  19.  
  20. <div class="col-xs-5 members-info">
  21. <div class="row">
  22. <div class="col-xs-12">
  23. <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?>
  24. <div class="members-caption">
  25. <h3><?php echo get_post_meta(get_the_ID(), 'name_titel_vorgestellt', true); ?>
  26. <?php echo get_post_meta(get_the_ID(), 'name_vorname', true); ?>
  27. <?php echo get_post_meta(get_the_ID(), 'name_nachname', true); ?>
  28. <?php echo get_post_meta(get_the_ID(), 'name_titel_nachgestellt', true); ?>
  29. </h3>
  30. </div>
  31. </div>
  32. </div>
  33.  
  34. <?php the_content(); ?>
  35. </div>
  36.  
  37.  
  38.  
  39. <?php
  40.  
  41. }
  42. wp_reset_postdata();
  43. }
  44.  
  45. ?>
  46. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement