Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: News
- */
- ?>
- <?php get_header(); ?>
- </div><!-- header-area -->
- </div><!-- end rays -->
- </div><!-- end header-holder -->
- </div><!-- end header -->
- <?php truethemes_before_main_hook();// action hook, see truethemes_framework/global/hooks.php ?>
- <div id="main">
- <?php get_template_part('theme-template-part-tools','childtheme'); ?>
- <div class="main-holder">
- <?php get_template_part('theme-template-part-subnav-left','childtheme'); ?>
- <div id="content" class="content_sidebar content_right_sidebar">
- <h2>Latest News</h2>
- <?php
- $temp = $wp_query;
- $wp_query= null;
- $wp_query = new WP_Query();
- $wp_query->query('cat=1'.'&paged='.$paged);
- ?>
- <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <div class="uvpostwrapper">
- <div class="uvthumb">
- <?php
- if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
- the_post_thumbnail();
- } else {
- ?><img src="/images/lozenge.jpg" /><?php
- }
- ?>
- </div>
- <div class="uvexcerpt">
- <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
- <?php the_excerpt(); ?>
- </div>
- <div class="uvclear"></div>
- </div>
- <?php endwhile; ?>
- <?php
- if(function_exists('wp_pagenavi')) {
- wp_pagenavi();
- }else{
- //not using this function, just for theme check plugin requirement.
- //do not remove this..
- paginate_links();
- }
- $wp_query = null; $wp_query = $temp;
- ?>
- </div><!-- end content -->
- <div id="sidebar">
- <?php generated_dynamic_sidebar(); ?>
- </div><!-- end sidebar -->
- </div><!-- end main-holder -->
- </div><!-- main-area -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement