The MU forums have moved to WordPress.org

Install MU in subdirectory but display in root.. (7 posts)

  1. guzh
    Member
    Posted 14 years ago #

    Hi,

    I've got a few problems I'd like to have some help with..

    I want to use wordpress MU for my portfolio and for my blog.
    I've installed MU at http://www.website.com/wordpress-mu/,
    and I want to display my portfolio at http://www.website.com

    And for the blog I want to display it at http://www.website.com/blog/

    I tried setting up so my portfolio was http://www.website.com/wordpress-mu/ and my blog at http://www.website.com/wordpress-mu/blog/ but that didn't work. Because my portfolio was the "main blog" and used "blog" in the permalinks, so none of the posts on the blog showed up, even if I changed the permalink settings on the portfolio..

    is this possible?
    How do I do it?

  2. STDestiny
    Member
    Posted 14 years ago #

    If that's all you want to do, you're better off using a single WP install instead of WPMU.

  3. guzh
    Member
    Posted 14 years ago #

    The thing I like with WPMU is that I'm able to log in on one place and choose which blog to write posts/pages to.

    I tried this, but I didn't manage to make it work..

    I made a thread about it, but didn't get the help I needed, so I tried MU instead.

  4. jmsearcy
    Member
    Posted 14 years ago #

    If I were you, I would go with the WP single player and the following:

    • Create 2 pages, "Portfolio" and "Blog"
    • Go to Settings->Reading and select "Front Page Displays a static page
    • Then choose the "Portfolio" page as your homepage, and the "blog" page for your blog
    • Create a custom page template with a modified wp-loop to show only posts from the "Portfolio" category, something like this:
      /*
        Template Name: Portfolio
       */
      
      get_header(); ?>
      
      	<div id="content" class="narrowcolumn" role="main">
      		<?php query_posts('category_name=portfolio&showposts=5'); ?>
      		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
      		<div class="post" id="post-<?php the_ID(); ?>">
      		<h2><?php the_title(); ?></h2>
      			<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
      			<div class="entry">
      				<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
      
      				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
      
      			</div>
      
      			<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
      
      		</div>
      
      		<?php endwhile; endif; ?>
      
      	</div>
      
      <?php get_sidebar(); ?>
      
      <?php get_footer(); ?>

      and save as portfolio.php

    • Assign the "portfolio" page template to the "portfolio" page
    • Now your home page will display only your portfolio posts, and the blog will display everything (you can choose to exclude the "portfolio" category from your blog page if you choose.
  5. guzh
    Member
    Posted 14 years ago #

    Hi,

    Thanks for a reply, but I think that it's best to use two different installs, and merge them when WP and WPMU merges. (:

    I'd like the two sites to be in different languages, and have many different categories. I think it would be tricky to make that kind of archives and search-pages if I use the same single WP. ;O

    any ways, thanks for the reply! ;D

  6. ebiladdress
    Member
    Posted 14 years ago #

    I have split sites up greatly for a number of clients and projects.

    I use wpmu all the time to make many sites stem from one core, there are a number of very minor modifications that make it work, but it does work very well and deals well with upgrades.

    Roughly covering what I would do in your shoes:
    - setup the install in root
    - use root mu blog for example.com
    - setup an 'otherblog' on example.com/otherblog
    - use navigation tricks to tie them together
    - operate two sites with fair independence from one core

    I also like to install tools like SiteWideTags which help bring all the information back around, there's a bunch of great RSS tools to help move content around the sites as well, of that becomes of interest.

    Give me a shout if there's anything I can do to help.

    Eric

  7. arabica
    Member
    Posted 14 years ago #

    I guess it's a .htaccess problem.
    I suggests you make sure .htaccess file is not conflicting with another one somewhere else.

About this Topic