Two blogs in one
-
I wanted to set up my blog so that I could have two blogs in one.
How to explain… hmm
Right imagine the left side has my bloggings and the right has a friends bloggings.Thats what I’m hoping to do.
http://www.oxygen-inc.com/blog
Help?
-
Well, you could just have one blog and display by author. You wanna do that?
well actually yes I do want to have just one blog, but with my posts displayed on the left, and my friends on the right.
http://duality.quadoshock.com/
that has something I’m looking forIt looks like that site displays by category. Either way, you’re gonna have to implement multiple loops.
http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action
http://codex.wordpress.org/Template_Tags/query_posts#Author_Parametersthank you very much for that information.
However sadly i’m just starting this blog and I am completely oblivious as to how to go about this.
Where should I edit? And what should I insert?
I’m hoping what I want isn’t too complicated 🙂
Hello? *hear’s an echo*
So do you want to display by author or by category?
by author please.
So my posts on the left, and his posts on the right.
I understand the jist of it.But I dont know where to put the code, or what exactly to type.
I’m sorry for asking to be spoonfed.
Copy the content of the following to home.php in the theme folder. (Create the file if there isn’t any)
http://pastebin.com/328591To customize it more, dig up http://codex.wordpress.org/
To make one author’s posts on the left and the other to the right is just a matter of CSS styling. Something as simple as the following in your style.css file will do it.
.subcontent {
float: left;
width: 250px;
}well I took that code and added it to the style.css at the bottom (since there was no matching code)
And it didn’t do much, I mean, I dont see any difference.
I dont have a home.php folder, but of course I have a index.php
i’m assuming they are the same.feel free of course to download the file.
it’s http://www.oxygen-inc.com/blog/wp-content/themes/ShadedGrey/index.php
Why the link you reference gave me an error? I don’t want to figure out what’s wrong with that theme.
1. Start with working Theme, say, Classic Theme. Create a file named home.php in
wp-content/themes/classicfolder and paste to it the content of the following.
http://pastebin.com/3285912. copy the following CSS code to style.css in wp-content/themes/classic
folder
.subcontent {
float: left;
width: 250px;
}`i’ve done what you’ve said.
Yes it does show it how I want.
But it only shows the title and I was hoping that a summary would be shown with a ‘read more’ link.Also with the distance between the two a bit wider.
quick addition.
It displays both posts on each side.So Kei’s post Jims post then on the right Kei’s post Jim’s post.
But it only shows the title and I was hoping that a summary would be shown with a ‘read more’ link.
Consult codex to display more Post-related output http://codex.wordpress.org/Template_TagsAlso with the distance between the two a bit wider.
Make a new thread on “Themes and Templates”So Kei’s post Jims post then on the right Kei’s post Jim’s post.
There are two places where you have to specify the author ids; I commented it, you should spot them easily. Make sure each of them has the correct value.
http://pastebin.com/328591i guess I better just give up then.
I did this<?php get_header(); ?>
<div id=”content”>
<?php query_posts( ‘Kei=1&showposts=5’ ); ?>
<?php if( have_posts() ) : ?>
<div class=”subcontent”>
<?php while( have_posts() ) : the_post(); ?><?php endwhile; ?>
</div>
<?php endif; ?><?php query_posts( ‘Jim=2&showposts=5’ ); ?>
<?php if( have_posts() ) : ?>
<div class=”subcontent”>
<?php while( have_posts() ) : the_post(); ?><?php endwhile; ?>
</div>
<?php endif; ?></div>
<?php get_footer(); ?>
and that is what gave me the 4 posts etc..
The topic ‘Two blogs in one’ is closed to new replies.