• Resolved jaylane

    (@jaylane)


    I’m working on a WordPress site where I want to have a blog and a press releases section and then have the most recent (maybe last 5) of each appear on the site’s home page. The blog part is easy. I have that up and running.

    My question deals with the press releases feed. I figured the best way to do this would be to create another blog. But maybe there’s a way that I could use one blog and then categorize blog posts and the press releases. Then have them show up on separate pages based on how I categorized them.

    I thought I’d see if anyone had any ideas on the best way to proceed. Thanks so much!

    Jay

Viewing 5 replies - 1 through 5 (of 5 total)
  • You don’t need to start another blog for the PR stuff, although that is certainly an option (you can then easily use its RSS feed within a widget).

    Alternatively, you could place all of your PR posts within a particular category. You could then, on your home page, call a custom query, pulling up posts from that specific PR category – all in your sidebar or elsewhere.

    I have done this before, and this what I used (this assumes your PR category is called ‘pr’:

    <?php $pr_query = new WP_Query('category_name=pr&showposts=5'); ?>
    
    <?php while ($pr_query->have_posts()) : $pr_query->the_post(); ?>
          <ul>
            <li>
              <a href="
                <?php the_permalink() ?>"
    	rel="bookmark"
    	title="<?php the_title(); ?>">
                <?php the_title(); ?>
              </a>
            </li>
          </ul>
    <?php endwhile; ?>

    Thread Starter jaylane

    (@jaylane)

    Thanks so much. I’ll give it a try and see what happens.

    Jay

    Thread Starter jaylane

    (@jaylane)

    I did think of another quick question. Can you put PHP code inside of a text widget?

    Thread Starter jaylane

    (@jaylane)

    Nevermind the last question. I found a PHP widget plugin.

    Thread Starter jaylane

    (@jaylane)

    Can I exclude the “pr” category from my blog page?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Having multiple blogs/RSS feeds within one site’ is closed to new replies.