Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $query = new WP_Query( array('post_type' => 'home_blocks', 'posts_per_page' => -1 ) );
- while ( $query->have_posts() ) : $query->the_post(); ?>
- <div class="item">
- <h2><?php the_title(); ?></h2>
- <a href="<?php echo get_post_meta($post->ID, "_block_url", true); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'full' ); ?></a>
- </div>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement