-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathimagegallery.php
More file actions
31 lines (21 loc) · 950 Bytes
/
imagegallery.php
File metadata and controls
31 lines (21 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
Template Name: Image Gallery
*/
?>
<?php get_header(); ?>
<div id="centercol" class="grid_10">
<h3><?php the_title(); ?></h3>
<div class="imagegallery arclist box">
<div class="box-inner">
<?php query_posts('showposts=16'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( get_post_meta($post->ID,'image', true) ) { ?>
<a title="Click here to read the story" href="<?php the_permalink() ?>"><img alt="<?php the_title_attribute(); ?>" src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=180&w=255&zc=1&q=95" style="margin:5px;"/></a>
<?php } ?>
<?php endwhile; endif; ?>
</div>
</div><!--/imagegallery-->
</div><!--/grid_10-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>