Posted By

jhkoning on 11/09/12


Tagged

woothemesmini-features


Versions (?)

WooThemes Mini Features


 / Published in: PHP
 

I'm looking at adding a is_sticky conditional to this code...

  1. <?php
  2. query_posts( 'suppress_filters=0&post_type=infobox&order=ASC&posts_per_page=' . $mini_features_number );
  3. if ( have_posts() ) { $count = 0; while ( have_posts() ) { the_post(); $count++;
  4.  
  5. $excerpt = stripslashes( get_post_meta( $post->ID, 'mini_excerpt', true ) );
  6. $button = get_post_meta( $post->ID, 'mini_readmore', true );
  7. $post_class = 'post block';
  8.  
  9. if ( $count % $mini_features_count == 0 ) { $post_class .= ' last'; }
  10. ?>

Report this snippet  

You need to login to post a comment.