Hi All,
I have WPMU set up for subdirectories.
All seems to work great.
My sites are all vhosts using domain name translation.
I see my main php site at http://www.mydomain.com
I see my subdomain sites at site1.mydomain.com and site2.mydomain.com
I see my main blog at blogs.mydomain.com
I see my subdomain blogs at blogs.mydomain.com/site1 and blogs.mydomain.com/site2
Now I want to add a code block to site1 to show the latest 3 posts. So I added the following to the top of the index page for site1:
<?php
require('/home/wordpress-mu/htdocs/wp-blog-header.php');
?>
And this code inside a <div> further down the page:
<?php query_posts('showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
<?php endwhile;?>
When I go to site1.mydomain.com I expect to see my index page and the last 3 posts inside my div. But instead, I get redirected to blogs.mydomain.com/
This happens before the page ever gets to the query_posts function.
Any ideas or suggestions would be greatly appreciated.
thanks!
Bill