Advertisement
elita

Untitled

Oct 2nd, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: myloves
  4. */
  5. ?><?php get_header(); ?>
  6. <?php
  7. $query= 'cat=12&orderby=date&order=DESC'; 'paged' >= get_query_var( 'paged' );
  8. query_posts($query);
  9. ?>
  10.  
  11.  
  12. <?php get_sidebar(); ?>
  13. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  14.  
  15. <article id="content" role="main" <?php post_class(); ?>>
  16.  
  17. <header>
  18. <?php if ( has_post_thumbnail() ) : ?>
  19. <figure class="post-thumbnail">
  20. <?php the_post_thumbnail(); ?>
  21. </figure>
  22. <?php endif; ?>
  23.  
  24. <?php if ( get_the_title() ): ?>
  25. <h1><?php the_title(); ?></h1>
  26. <?php endif; ?>
  27. </header>
  28.  
  29. <div class="content"><?php the_content(); ?></div>
  30.  
  31. <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'blaskan' ), 'after' => '</div>' ) ); ?>
  32.  
  33. <footer>
  34. <?php if ( count( get_the_category() ) ) : ?>
  35. <span class="categories">
  36. <?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'blaskan' ), 'categories-label', get_the_category_list( ', ' ) ); ?>
  37. </span>
  38. <?php endif; ?>
  39.  
  40. <?php
  41. $tags_list = get_the_tag_list( '', ', ' );
  42. if ( $tags_list ):
  43. ?>
  44. <span class="tags">
  45. <?php printf( __( '<span class="%1$s">Tagged with</span> %2$s', 'blaskan' ), 'tags-label', $tags_list ); ?>
  46. </span>
  47. <?php endif; ?>
  48.  
  49. <?php edit_post_link( __( 'Edit', 'blaskan' ), '<span class="edit-link">', '</span>' ); ?>
  50. </footer>
  51.  
  52. <?php comments_template( '', true ); ?>
  53.  
  54. </article>
  55. <!-- #content -->
  56.  
  57. <?php endwhile; ?>
  58.  
  59.  
  60. <?php get_footer(); ?>
  61. <?php next_posts_link( 'Pagina precedente', $mia_variabile->max_num_pages );?>
  62. <?php previous_posts_link( 'Pagina successiva', $mia_variabile->max_num_pages );?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement