Well here's the deal...I am setting up a nice little company blogging site for my business. Technically right now its just my own blog so I could use the regular wordpress but in the future, I will be adding more to it so I figured it might be easier to get MU ready and in-place now.
I have my theme all picked out. I copied index.php to home.php for modification purposes, and here is the code I found it uses to display recent blog posts.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="meta">
<?php the_time ('M d, Y @ h:i a'); ?> by <?php the_author (); ?>
</div>
<div class="storycontent">
<?php the_content(__('more...')); ?>
<?php wp_link_pages(); ?>
</div>
<div class="feedback">
Posted under <?php the_category (',') ?>
<?php edit_post_link(__(' | Edit This')); ?>
|
<?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
</div>
</div>
<div id="comments">
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
This looks good, but my issue is more on the technical side, since this is for a home page I just don't want recent posts from the admin blog, I want recent posts from all blogs.
Now I'm not a PHP scriptor, rather a small business owner, but I do have some PHP knowledge, and I am assuming the real magic of the code I gave above happens here:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Specifically in those functions, are their any functions I can replace those with that will do essentially the same thing but for all blogs, not just admin blog.
If not, where are those functions at, so I can create new functions based off of them to do what I need, and I'm sure depending on the complexity if I have to write my own fucntions from theirs I will need further help.
Or if for some reason I am completley wrong about how this works let me know. Thanks for your time.