I'm working on a site where the front page is a home.php site but the client will wants some of the WordPress loop to be active. He wants only 2 posts to show up on the front page, and he wants those 2 posts to come from only 3 categories that he uses. If someone could let me know what the php code would be for that - I think it's this, but let me know:
<?php query_posts('cat=15&showposts=1'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content('Read more...'); ?>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
But not only this - my client wants each of those categories to have a separate sub-header that will appear, based on what category it is.
For example, if a post has Category A, then he wants Tagline A to appear under the title of the post. If the post is Category B, the he wants Tagline B to appear. The same with Category C. Does this make sense? Can anyone help with this? Thanks!