Guest User

code

a guest
Oct 25th, 2011
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Ja Home
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9. <?php
  10. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  11. $wp_query = new WP_Query();
  12. $wp_query->query('post_type=home_post&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged);
  13. ?>
  14.  
  15. <div class="post">
  16.  
  17.  
  18. <?php if ($wp_query->have_posts()) : ?>
  19.  
  20.     <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
  21.  
  22.         <h1 class="home_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  23.                 <?php global $more; $more = 0; the_content('<p class="">Read further &raquo;</p>'); ?>
  24.                 <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
  25.                 <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?><div id="separate"></div>
  26.                    
  27.     <?php endwhile; ?>
  28.  
  29. <?php next_posts_link('Previous') ?> | <?php previous_posts_link('Next') ?>
  30.  
  31. <?php endif; ?>
  32.  
  33.  
  34. </div><!-- post -->
  35.  
  36. <?php get_sidebar(); ?>
  37.  
  38. <?php get_footer(); ?>
  39.    
  40.  
Advertisement
Add Comment
Please, Sign In to add comment