Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $parent = $post->ID; ?>
- <?php
- $counter = -1;
- query_posts('post_type=page&posts_per_page=-1&&orderby=meta_value&meta_key=Category&order=asc&post_parent='.$parent);
- while (have_posts()) : the_post();
- ?>
- <div style="float:left; width:124px; margin-right:15px; padding-bottom:10px; text-align:center; <?php $counter++; if( $counter%5 == 0 ) echo 'clear:left; '; ?>">
- <img style="padding-bottom:5px;" src="<?php echo get_bloginfo('template_directory'); ?>/images/124teambadge/<?/* This echos the slug */ echo $post->post_name; ?>.png" title="<? the_title_attribute( 'echo=0' ) ?>" width="120" height="120" />
- <h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div>
- <?php //the_excerpt(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
- </div><!-- .entry-content -->
- </div>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement