Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row clearfix">
- <?php
- $custom_members_args = array(
- 'post_type' => 'dw_custom_members', //name of my custom post
- 'post_status' => array('publish'),
- 'order' => 'DESC',
- 'category_name' => 'team',
- // 'posts_per_page' => 2,
- );
- $custom_members_query = new WP_Query($custom_members_args);
- if ($custom_members_query->have_posts()) {
- while ($custom_members_query->have_posts()) {
- $custom_members_query->the_post();
- ?>
- <div class="col-xs-5 members-info">
- <div class="row">
- <div class="col-xs-12">
- <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?>
- <div class="members-caption">
- <h3><?php echo get_post_meta(get_the_ID(), 'name_titel_vorgestellt', true); ?>
- <?php echo get_post_meta(get_the_ID(), 'name_vorname', true); ?>
- <?php echo get_post_meta(get_the_ID(), 'name_nachname', true); ?>
- <?php echo get_post_meta(get_the_ID(), 'name_titel_nachgestellt', true); ?>
- </h3>
- </div>
- </div>
- </div>
- <?php the_content(); ?>
- </div>
- <?php
- }
- wp_reset_postdata();
- }
- ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement