Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $do_not_duplicate = array();
- $folio_loop = new WP_Query( array
- (
- 'featured' => 'featured-post',
- 'post_type' => 'projects',
- 'posts_per_page' => '1',
- )
- );
- while ( $folio_loop->have_posts() ) : $folio_loop->the_post();
- $do_not_duplicate[] = $post->ID; ?>
- <div id="featured" style="position: relative;">
- <div class="featured-overlay" style="position: absolute; right: 20px; bottom: 20px; width: 165px; height: 165px; text-align: center;">
- <div class="project-meta-featured">
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
- <span>
- <?php
- global $post;
- $text = get_post_meta( $post->ID, '_cmb_project_meta', true );
- echo $text;
- ?>
- </span>
- <br />
- <?php
- global $post;
- $text = get_post_meta( $post->ID, '_cmb_client_meta', true );
- echo $text;
- ?>
- </a>
- </div>
- </div>
- <?php if ( has_post_thumbnail()) : ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
- <?php the_post_thumbnail('featured'); ?>
- </a>
- <?php endif; ?>
- </div>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement