Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Category
- */
- ?>
- <?php get_header(); ?>
- <div id="main">
- <h1 class="cat_title"><?php single_cat_title(); ?></h1>
- <span class="banner">What to eat while pregnant? What should you avoid, and why? You probably have many questions about pregnancy diet... But you came to the right place. All the answers you were looking for are right here, in Diet when Pregnant's Articles Page.</span>
- <?php query_posts( array ( 'category_name' => 'articles', 'posts_per_page' => 4 ));
- if ( have_posts() ) : while ( have_posts() ) : the_post();?>
- <?php
- global $more;
- $more = 0;
- echo '<div class="post">';
- echo '<h2>';
- the_title();
- echo '</h2>';
- echo '<span>';
- the_content('Read more...');
- echo '</span>';
- echo '</div>';
- endwhile; endif;
- wp_reset_query(); ?>
- </div><!--END main-->
- <?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
- <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement