Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Subpages Thumbnail Page
- */
- ?>
- <?php get_header(); ?>
- <div id="main-container-subpages">
- <div id="bottomclear"> </div>
- <div class="subpages">
- <span style="display:none;"><?php the_ID(); ?></span>
- <?php $parent = $post->ID; ?>
- <?php
- query_posts('posts_per_page=8&post_type=page&post_parent='.$parent);
- while (have_posts()) : the_post(); ?>
- <?php if ( has_post_thumbnail() ) { ?>
- <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?>
- <div class="detailthumb-1"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thin-detail'); ?></a></div>
- <?php } ?>
- <?php if ( has_post_thumbnail() ) { ?>
- <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?>
- <div class="detailthumb-2"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('wide-detail'); ?></a></div>
- <?php } ?>
- <?php if ( has_post_thumbnail() ) { ?>
- <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?>
- <div class="detailthumb-3"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('wide-detail'); ?></a></div>
- <?php } ?>
- <?php if ( has_post_thumbnail() ) { ?>
- <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?>
- <div class="detailthumb-4"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thin-detail'); ?></a></div>
- <?php } ?>
- <?php endwhile; ?>
- </div>
- <div id="bottomclear"> </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement