/ Published in: PHP
I'm looking at adding a is_sticky conditional to this code...
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php query_posts( 'suppress_filters=0&post_type=infobox&order=ASC&posts_per_page=' . $mini_features_number ); if ( have_posts() ) { $count = 0; while ( have_posts() ) { the_post(); $count++; $button = get_post_meta( $post->ID, 'mini_readmore', true ); $post_class = 'post block'; if ( $count % $mini_features_count == 0 ) { $post_class .= ' last'; } ?>