Title: Multiple Blogs? Same Site?
Last modified: August 18, 2016

---

# Multiple Blogs? Same Site?

 *  [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/)
 * Hello, I am running [http://www.otsumamimusic.com](http://www.otsumamimusic.com)
   with WordPress.
 * The front page shows 4 posts each advertising a differnet music event.
 * In addtion to this, I would also like to start a couple of blog threads that 
   are published by the authors or the site.
 * Like this.
    [http://www.japannewbie.com/otsumamimusic/wp/?page_id=57](http://www.japannewbie.com/otsumamimusic/wp/?page_id=57)
 * Currently I am doing the author blog section with a page, and plan to just update
   the page when there is a new entry… but that’s not cool!
 * Is there some way I can make this section of my site, only show posts are published
   under a specific category or something, so I can keep those posts totally seperate
   from teh posts on the front page?
 * I would like to be able to run that second blog back there as well as the events
   on the front page…
 * Let me know if anyone has a way to do this! All help appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-276861)
 * [The_Loop](http://codex.wordpress.org/The_Loop) has a section on excluding Categories
   and [Author_Templates#Author_Data_in_Other_Templates](http://codex.wordpress.org/Author_Templates#Author_Data_in_Other_Templates)
   has good info.
 * See these Codex articles:
    [Installing_Multiple_Blogs](http://codex.wordpress.org/Installing_Multiple_Blogs)
   [WordPressMU](http://codex.wordpress.org/WordPressMU)
 * Chetan Narsude’s 1 Minute to LAMP: Multiple Weblog Support in WordPress:
    [http://chetan.gotdns.com/blog/?p=18](http://chetan.gotdns.com/blog/?p=18)
 * WordPress Multi-blog Hack:
    [http://www.wswang.com/bloh/?p=3](http://www.wswang.com/bloh/?p=3)
 * Semiologic:
    [http://www.semiologic.com/projects/opt-in-front/](http://www.semiologic.com/projects/opt-in-front/)
 * Merge two WordPress Blogs:
    [http://wordpress.org/support/topic/41607](http://wordpress.org/support/topic/41607)
 *  Thread Starter [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-276996)
 * Thanks for all the info! I’m always surprised by WP’s flexibility.
 * At first glance, I think that it will be easist for me to include THE LOOP on
   a new PAGE in my site, and config that LOOP to only show posts by a certain author,
   or category.
 * Let me see if I can figure out how this works…
 *  Thread Starter [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-276998)
 * I’m getting stuck on one simple thing.
 * How do I include THE LOOP, in some other page?
 * I tried putting my LOOP code into a PAGE that I created, however, the page just
   displays the code, doesn’t read it as code as I wrongly guessed it would.
 * Then, I tried taking my index.php, and saving it as somethingelse.php and putting
   it back into my /wp/ directory and tried to link to it.
 * For some reason I couldn’t get a link to this page to work either, always get
   page not found.
 * But if I can get the code into another php file, I should be able to edit this“
   other” loop to display only the posts I want filtered by category or author or
   whatever, correct?
 * Any help on this appreciated!
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-277049)
 * To put code in a Page via the Page Content field, and expect it to work, you’ll
   need to use a plugin like:
 * PHPExec Plugin
    [http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/](http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/)
 * or, RunPHP Plugin
    [http://www.nosq.com/2004/10/runphp-wordpress-plugin/](http://www.nosq.com/2004/10/runphp-wordpress-plugin/)
 * The [Templates](http://codex.wordpress.org/Templates) and [Template Hierarchy](http://codex.wordpress.org/Template_Hierarchy)
   articles, and the [Category:Templates](http://codex.wordpress.org/Category:Templates)
   will help you decide if you want to put code in [Pages](http://codex.wordpress.org/Pages)
   or modify your [Themes](http://codex.wordpress.org/Themes)‘ template files.
 * Also [How do I create an archives page?](http://codex.wordpress.org/FAQ_Layout_and_Design#How_do_I_create_an_archives_page.2C_with_all_the_entries_sortable_by_different_methods.3F)
 *  Thread Starter [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-277185)
 * Brain explosion!
 * Bear with me here. I’m hanging on the edge.
 * Conceptually what I think I need.
 * – A new page which shows posts
    – This new page -only- shows posts from a certain
   category – This page must include the LOOP – This page’s LOOP is configured differently
   than my index.php loop which is used for my main blog site.
 * Technically to do this…
    – Doesn’t need to be a PAGE. – Create a new directory
   inside of my /wp/ – Inside this directory, include index.php, but also a category-
   1.php – This category-1.php will show the LOOP for all posts of category 1 and
   have priority because of hierarchy rules. – Also, in category-1.php, must make
   it only display certain category posts (cagetory 1) **not sure how to do this.–
   link from the main page, over to that category-1.php? or is it over to that new
   PAGE?
 * Or…
    Seems like, I can make the category template. And when they click the CATEGORY
   =1 stuff on my main page, they will see only those posts, displayed with my category-
   1.php template. However my problem here is that I don’t want my category 1 stuff
   to appear in my regular index.php stuff.
 * Need to make index.php exclude everything from a certain category
    Which I have
   been pointed to…
 * However, using the EXCLUDE category technique, I tried it, and it works, however,
   when it excludes the post, it leaves a big -blank- area where the post should
   be. Is there anyway I can get it to exclude all posts from that category, however
   instead of leaving a blank, to just fill in with whatever post should be coming
   next? I guess i could get this blank in my case because of the funky tables I
   have going on which allow me to post horizontally instead of vertically…
 * So close! Yet so far.
 *  Thread Starter [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-277211)
 * `
    <!--HORIZONTAL --> <?php if (have_posts()) : while (have_posts()) : the_post();?
   >
 *  <!-- The following tests if the current post is in category 3. -->
    <!-- If 
   it is not, the code within The Loop is executed as normal. --> <!-- If it is,
   nothing is done until the next post is processed. --> <?php if ( !(in_category('
   21')) ) { ?>
 *  <!--HORIZONTAL GET COLUMNS SAME HERE -->
    <td VALIGN=TOP WIDTH=25% bgcolor="
   white"> <!--HORIZONTAL--> <div class="entry"> <!-- <h4 class="entrydate"><?php
   the_date() ?></h2> --> <!-- <h4 class="entrytitle" id="post-<?php the_ID(); ?
   >"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a
   ></h3> --> <h4 class="entrytitle2" id="post-<?php the_ID(); ?>"><a href="<?php
   the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>  <div class
   ="entrybody"> <?php the_content(__('(more...)')); ?>
 *  <p class="comments_link">
    <img src="<?php bloginfo('stylesheet_directory');?
   >/images/file.gif" title="file" alt="*" />  <?php _e("By"); ?> <?php the_author();?
   > <?php _e("at");?> <?php the_time() ?> <?php _e(": ");?> <?php the_category(',');?
   ><br/> <?php  $comments_img_link = '<img src="' . get_stylesheet_directory_uri().'/
   images/comments.gif" title="comments" alt="*" />'; comments_popup_link('No Comments',
   $comments_img_link . ' 1 Comment', $comments_img_link . ' % Comments');  ?> </
   p> </div> <!-- <?php trackback_rdf(); ?> --> </div> <?php comments_template();//
   Get wp-comments.php template ?> <!--HORIZONTAL--> </td> <!--HORIZONTAL--> <?php}?
   > <!-- Close the exclude 21 if statement. --> <?php endwhile; else: ?> <p><?php
   _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> <!--HORIZONTAL--
   > </tr> </table> <!--HORIZONTAL --> <?php posts_nav_link(' — ', __('&laquo; Previous
   Page'), __('Next Page &raquo;')); ?> </div> </div> <!-- The main content column
   ends --> <?php get_sidebar(); ?> <?php get_footer(); ?>
 *  Thread Starter [Harvey](https://wordpress.org/support/users/harvey/)
 * (@harvey)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-277214)
 * Maybe I should try this next…
 * [http://codex.wordpress.org/FAQ_Layout_and_Design#How_do_I_exclude_one_or_more_categories_from_being_listed_in_the_list_of_categories.3F](http://codex.wordpress.org/FAQ_Layout_and_Design#How_do_I_exclude_one_or_more_categories_from_being_listed_in_the_list_of_categories.3F)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Multiple Blogs? Same Site?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Harvey](https://wordpress.org/support/users/harvey/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/multiple-blogs-same-site/#post-277214)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
