WordPress.org

Ready to get started?Download WordPress

Forums

Blog excerpts from my subdomains in my main site. (3 posts)

  1. addy75
    Member
    Posted 1 year ago #

    If this topic has been addressed using maybe more appropriate wording than I did, please point me in the right direction. I'm sure you hate redundancy.

    Like many online magazines, I aspire to be like, I am trying to figure out how to separate my MAIN blog site with excerpts from my subdomain sites into different sections. (events.myblogsite.com, news.myblogsite.com).

    I have successfully installed multisite and have created the above sites. What I do want is to be able to put the excerpts of the subdomain blogs on my main site so I can place them in different sections and be able to manipulate the loop just like I do with the blogs on my main site..
    For example:

    MAIN SITE (myblogsite.com)
    
    <section id= main_site_blogs>
    my main blog loop excerpts
    </section>
    
    <section id=News>
    excerpts from news.myblogsite.com (with "count" ability)
    </section>
    
    <section id=Events>
    excerpts from events.myblogsite.com (with "count" ability)
    </section>
    
    end of MAIN SITE

    any help will be greatly appreciated family.

  2. addy75
    Member
    Posted 1 year ago #

    Did some more digging and found the sitewide tag plugin. Used it and all is well but still looking for a way to distinguish between the origin of the blog posts to I can place the appropriate excerpt into the relative section.

    Right now I still have the standard loop on my main site in one section:

    <?php query_posts("posts_per_page=5"); ?>
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    		<p><?php the_date(); ?></p>
    			<?php the_post_thumbnail(); ?>
    				<h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
    	 			<p><?php echo excerpt(0);?></p>

    as always, any help will be greatly appreciated.

  3. This is the plugin for those wondering: http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/

    You should be able to write a filter that sends the site ID somehow, though I don't know off the top of my head.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.