Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ol>
- <?php
- $postcount=1;
- $my_query = new WP_Query('category_name=news&showposts=8');
- while ($my_query->have_posts()) : $my_query->the_post();
- $do_not_duplicate = $post->ID;
- global $post;
- if( ($postcount % 2) == 0 ) $post_class = 'categoryinsideleft'; else $post_class = 'categoryinsideright'; ?>
- <li class="<?php echo $post_class; ?>">
- <a class="link" href="">
- <div class="mg-image">
- <img width="163.483" height="163" src="<?php echo get_post_meta($post->ID, "img_preview", $single = true); ?>" alt="<?php the_title(); ?>" class="img-zoom">
- </div>
- </br></br>
- <span class="wrap">
- <span class="arrows4444"></span>
- <span class="text">
- <span class="category">Style | Grooming</span>
- </br>
- <span class="headline"><?php the_title(); ?></span>
- </span>
- </span>
- </a>
- </li>
- <?php $postcount++;
- endwhile; ?>
- </ol>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement