Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Comunicazioni
- */
- ?>
- <?php get_header(); ?>
- <div id="container">
- <div id="content" role="main">
- <?php
- $temp = $wp_query;
- $wp_query= null;
- $wp_query = new WP_Query();
- $wp_query->query('showposts=5&cat=9,10'.'&paged='.$paged);
- ?>
- <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <!-- Display the Title as a link to the Post's permalink. -->
- <h1 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
- <div class="entry-meta">
- <?php twentyten_posted_on(); ?> <?php edit_post_link( __( 'Edit', 'twentyten' ), ' <span>(', ')</span>' ); ?>
- </div><!-- .entry-meta -->
- <!-- Display the Post's Content in a div box. -->
- <div class="entry-content">
- <?php the_excerpt(); ?>
- </div><br />
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php previous_posts_link('« Previous') ?></div>
- <div class="alignright"><?php next_posts_link('More »') ?></div>
- </div>
- <?php $wp_query = null; $wp_query = $temp;?>
- </div><!-- #content -->
- </div><!-- #container -->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement