• Hi

    Currently our Blog page shows all Posts in a list, as I guess is the norm. I want to change this to have it show a list of all Posts where the category is Blog. This way I can create blog-looking posts and link to their URL without them actually appearing on the Blogs list.

    This is what I have currently in my Page template (page.php). I’m guessing that I need to make a change here?

    [please mark any posted code – http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    ****************************************************

    <script type="text/javascript" charset="utf-8">
      $(document).ready(function(){
        $("a[rel^='prettyPhoto']").prettyPhoto();
      });
    </script>
    <?php $themePath = get_template_directory_uri(); ?>
    <?php get_header(); ?>
    <div id="blog" role="main" class="row">
    	<div class="fullposttitle span16"><h3><?php single_post_title(); ?></h3></div>
    	<div class="span-two-thirds blog">
    		<?php if (have_posts()) :  while (have_posts()) : the_post(); ?>
    		<article class="post" id="post-<?php the_ID(); ?>">
    			<div class="entry-content">
    				<?php if ( is_search() ) { the_excerpt(); }  else { the_content('<span>Continue Reading →</span>'); } ?>
    				<?php if (is_single()) { wp_link_pages(); } ?>
    			</div>
    		</article>
    		<?php endwhile; ?>
    		<?php else : ?>
    		<?php endif; ?>
    	</div>
    	<?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    ****************************************************

    Olly

    [bump moderated]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Showing only posts of category Blog in blog section’ is closed to new replies.