WooThemes Mini Features


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.