Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php /* Template name: News */ ?>
- <?php get_header(); ?>
- <div id="center">
- <div class="conteudo">
- <div class="single-content">
- <div class="sleft">
- <h1 id="resultados">Arquivo de Notícias Gastrocom</h1>
- <?php
- $temp = $wp_query;
- $wp_query= null;
- $argsves = array(
- 'post_type' => 'noticias',
- 'paged' => '$paged',
- 'posts_per_page' => 1,
- 'orderby' => 'date',
- 'order'=>'DESC' );
- $wp_query = new WP_Query( $argsves );
- if ($wp_query->have_posts()) :
- while ($wp_query->have_posts()) : $wp_query->the_post();
- ?>
- <a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
- <div class="data-post" style="margin-top: -30px !important;"><?php the_date(); ?></div>
- <a href="<?php the_permalink(); ?>" class="veresult">Abrir</a>
- <hr />
- <?php endwhile; wp_reset_query(); ?> </div><?php else : ?>
- <h2>Sem Notícias</h2>
- </div>
- <?php endif;?>
- <div class="sright">
- <div class="mais-news">
- <div class="mais-titulo"><h2>Últimas Notícias</h2></div>
- <?php get_template_part("loop", "maisnews"); ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement