How Do I specify a single category from blog to show on specific page

Discussion in 'Dzonia WordPress Theme' started by dzonia, Nov 30, 2012.

  1. dzonia

    dzonia New Member

    Joined:
    Nov 5, 2012
    Messages:
    1
    Likes Received:
    0
    I can force just one category to be visible on blog but actually I want to ask it to show a specific category for a specific page. For example I want to create a blog page that only shows one category and my news page to show another category....have tried edited the blog page.php and no joy so far...anyone have any work arounds I am missing?
    This works for showing just on category on all blog pages:
    <?php query_posts('showposts=10&cat=25&order=ASC'); ?>
    but this doesn't work for showing two different depending on page:
    <?php
    if (is_page(602)) {
    query_posts( 'showposts=1&cat=25&order=ASC' );
    }
    elseif if (is_page(30)) {
    query_posts( 'showposts=1&cat=25&order=ASC' );
    }
    ?>
     

Share This Page