Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package WordPress
- * @subpackage TravelZine
- */
- /* Template name:Archivio
- */
- $pagenum = $wp_query->query_vars;
- $pagenum = $pagenum['paged'];
- if (empty($pagenum)) {
- $pagenum = 1;
- }
- ?>
- <?php get_header(); ?>
- <div class="span-24" id="contentwrap">
- <div id="content">
- <?php $query= 'cat=27&orderby=date&order=DESC'; query_posts($query);?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <h2 class="title"><?php the_title(); ?></h2>
- <div class="entry">
- <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(300,225), array("class" => "alignleft post_thumbnail")); } ?>
- <?php wp_link_pages(array('before' => '<p><strong>Pagine:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
- <?php
- global $more;
- $more_tmp=$more;
- $more = 0;
- the_content('(continua...)');
- $more=$more_tmp;
- ?>
- </div>
- </div>
- <?php endwhile; endif; ?>
- <?php edit_post_link('Modifica', '<p>', '</p>'); ?>
- </div>
- </div>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment