StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-18-2009, 07:53 AM
SoZo's Avatar
SoZo SoZo is offline
Community Moderator
 
Join Date: Oct 2008
Location: Minneapolis, Minnesota
Posts: 47,500
Default Re: 2 blogs in 1 theme

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.