Guest User

Untitled

a guest
Apr 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.14 KB | None | 0 0
  1. <?php
  2. /**
  3.  * @package WordPress
  4.  * @subpackage TravelZine
  5.  */
  6. /* Template name:Archivio
  7. */
  8. $pagenum = $wp_query->query_vars;
  9. $pagenum = $pagenum['paged'];
  10.  
  11. if (empty($pagenum)) {
  12. $pagenum = 1;
  13. }
  14. ?>
  15.  
  16.  
  17. <?php get_header(); ?>
  18. <div class="span-24" id="contentwrap">
  19.  
  20.  
  21.  
  22.  
  23.         <div id="content"> 
  24.  
  25.             <?php $query= 'cat=27&orderby=date&order=DESC'; query_posts($query);?>
  26.                                
  27.             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  28.             <div class="post" id="post-<?php the_ID(); ?>">
  29.             <h2 class="title"><?php the_title(); ?></h2>
  30.                 <div class="entry">
  31. <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(300,225), array("class" => "alignleft post_thumbnail")); } ?>
  32.                    
  33.  
  34.    
  35.                     <?php wp_link_pages(array('before' => '<p><strong>Pagine:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  36.  
  37. <?php
  38. global $more;
  39. $more_tmp=$more;
  40. $more = 0;
  41. the_content('(continua...)');
  42. $more=$more_tmp;
  43. ?> 
  44.                 </div>
  45.             </div>
  46.             <?php endwhile; endif; ?>
  47.         <?php edit_post_link('Modifica', '<p>', '</p>'); ?>
  48.         </div>
  49.  
  50.  
  51. </div>
  52. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment