Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $toptracks = get_post_meta($post->ID, 'category', true);
- $the_query = new WP_Query('cat=' . $toptracks); ?>
- <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
- <div id="offersouter"><?php if ( has_post_thumbnail()) : ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
- <?php the_post_thumbnail('', array('class' => 'offersimg')); ?>
- </a>
- <?php else: ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
- <img src="/wp-content/themes/twentytwelve/assets/logo.png" class="offersimg" />
- </a>
- <?php endif; ?>
- <div id="offersinner">
- <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
- <p><?php the_excerpt(__('(more…)')); ?></p></div>
- </div>
- <?php endwhile;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement