Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--BEGIN #BLOGNEWS. .inner-wrap -->
- <div id="recent-work" class="inner-wrap clearfix">
- <!--BEGIN .Our Services -->
- <div class="side-content">
- <h2>From The Blog</h2>
- <p>As a digital agency our talented team of designers and web developers deliver great results through professional websites and digital campaigns.</p>
- <!--END .side-content -->
- </div>
- <?php
- $query = new WP_Query(array(
- 'orderby' => $tz_blog_order,
- 'posts_per_page' => $tz_blog_number
- )
- );
- ?>
- <ul class="grid clearfix">
- <?php
- if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();
- $thumb = get_post_meta(get_the_ID(), 'tz_portfolio_thumb', TRUE);
- $type = get_post_meta(get_the_ID(), 'tz_switch', TRUE);
- if($thumb == '')
- $thumb = FALSE;
- ?>
- <li <?php post_class(); ?> id="post-<?php the_ID(); ?>">
- <h3 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('%s', 'framework'), get_the_title()); ?>">
- <?php the_title(); ?>
- </a></h3>
- <div class="post-thumb"> <a href="<?php the_permalink(); ?>" title="<?php printf(__(' %s', 'framework'), get_the_title()); ?>">
- <?php if($thumb) : ?>
- <img width="205" height="154" src="<?php echo $thumb; ?>" alt="<?php the_title(); ?>" />
- <?php else: ?>
- <?php the_post_thumbnail('thumbnail-preview'); ?>
- <?php endif; ?>
- </a> </div>
- <div class="entry-excerpt">
- <?php the_excerpt(); ?>
- </div>
- </li>
- <?php endwhile; endif; ?>
- </ul>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement