WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've searched for this but can't find a clear answer.

I'd like to have my main blog page display posts with certain categories and then have another blog page that shows different categories.

How would I do this?

Thank yoU! Matt

share|improve this question

One way would be to create a template page, and in that page, you'd have the logic to display the categories you want to show. Your template page would look something like this:

Template Name: Secondary Blog Page


/*Code for your custom category display*/
$customcats = new WP_Query(array(
    'cat' => 12,13,15  //Category ID's

while($customcats->have_posts()): $customcats->the_post();
    //code to display the posts however you want



Then you'd create a new page, and choose this template to render it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.