![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#2
|
||||
|
||||
|
You would need to create separate blog templates and manually set the category ids
Here is the code for page_blog.php from Lifestyle 1.0 To show all categories delete this "cat=1&". To show only certain categories replace the 1 with the IDS, i.e. - cat=1,2,3& Code:
<?php
/*
Template Name: Blog Page
*/
?>
<?php get_header(); ?>
<div id="content">
<div id="contentleft">
<div class="postarea">
<?php include(TEMPLATEPATH."/breadcrumb.php");?>
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=1&showposts=5&paged=$page"); while ( have_posts() ) : the_post() ?>
<h1><?php the_title(); ?></h1>
<div class="date">
<div class="dateleft">
<span class="time"><?php the_time('F j, Y'); ?></span> by <?php the_author_posts_link(); ?> <?php edit_post_link('(Edit)', '', ''); ?>
Filed under <?php the_category(', ') ?></p>
</div>
<div class="dateright">
<span class="comment"><?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?></span></p>
</div>
</div>
<?php the_content(__('[Read more]'));?><div style="clear:both;"></div>
<div class="postmeta2">
Filed Under: <?php the_category(', ') ?>
Tagged: <?php the_tags('') ?>
</div>
<?php endwhile; ?>
<?php posts_nav_link(); ?></p>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<?php get_footer(); ?>
__________________
John "Nicolas Flamel" Wright | SoZo's design | John Wright Photography New to Genesis? Check out Genesis Explained. "We are the music makers, and we are the dreamers of dreams..." - Arthur O'Shaughnessy "Some days even my lucky rocket ship underpants don't help" - Calvin StudioPress on Facebook |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple blogs using same theme? | paintorthread | General Discussion | 1 | 11-08-2010 09:45 PM |
| Agent Theme has two Blogs? | Robert008 | General Discussion | 1 | 12-08-2009 12:37 PM |
| Four different blogs in the same theme... | photonhunter | General Discussion | 2 | 11-12-2009 06:32 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us