Advertisement
alchymyth

Untitled

Apr 12th, 2011
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.32 KB | None | 0 0
  1.            <?php $parent = $post->ID; ?>
  2.            
  3.             <?php
  4. $counter = -1;
  5.             query_posts('post_type=page&posts_per_page=-1&&orderby=meta_value&meta_key=Category&order=asc&post_parent='.$parent);
  6.              while (have_posts()) : the_post();
  7.             ?>
  8.                 <div style="float:left; width:124px; margin-right:15px; padding-bottom:10px; text-align:center; <?php $counter++; if( $counter%5 == 0 ) echo 'clear:left; '; ?>">
  9.                     <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" />
  10.                                 <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>
  11.        
  12.                                 <div>
  13.                                         <?php //the_excerpt(); ?>
  14.                                         <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  15.                                 </div><!-- .entry-content -->
  16.                 </div>
  17.        
  18.             <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement