Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $queryObject = new Wp_Query( array(
- 'showposts' => 7,
- 'post_type' => array('post'),
- 'tag_slug__and' => array('featured-music'),
- 'orderby' => 1
- ));
- $i = 0;
- $class = array("first-post", "posts-below");
- while ( $queryObject->have_posts() ) {
- $queryObject->the_post();
- if ( $i == 0 ) { ?>
- <div class=<?php echo $class[0]; ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Read %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>">
- <?php the_post_thumbnail('sidethumbs'); ?>
- </a>
- </div>
- <?php
- $i++;
- } else { ?>
- <div class=<?php echo $class[1]; ?>>
- <a href="<?php the_permalink(); ?>" title="<?php printf(__( 'Read %s', 'wpbx' ), wp_specialchars(get_the_title(), 1)) ?>">
- <?php the_post_thumbnail('sidethumbs'); ?>
- <?php the_title(); ?>
- </a>
- </div>
- <?php $i++;
- }
- } ?>
- <?php elseif (8 < $count && $count <= 17 && $paged === 1) :
- if ($count === 9) echo '<div style="clear:both;"></div><div class="row div-break-first" style="margin:10px 0px 50px 0px;">' ,get_template_part('hot','music'), '</div>'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement