elita

Untitled

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