PHP Help for a WordPress Theme: Magazeen

Discussion in 'WordPress' started by pratik, Dec 20, 2009.

  1. #1
    Hi there,

    I am using this theme called Magazeen for one of my clients blog.

    If you see in the header there is image scroll under heading "Check out the course outline". It shows all the latest posts made in the blog.
    I want to exclude a particular category from that scroll.
    Whats the code for excluding a category from the scroll.
    
    <?php
    					$dock = new WP_Query();
    					$dock->query( 'showposts=9' );
    					while( $dock->have_posts() ) : $dock->the_post();
    				?>
    PHP:
    Here are the codes of the scroll, which I got from header.php
     
    pratik, Dec 20, 2009 IP
  2. addlinkurl

    addlinkurl Well-Known Member

    Messages:
    2,409
    Likes Received:
    129
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #2
    please try this one:

    replace the cat=1, with the category id.
     
    addlinkurl, Dec 20, 2009 IP
    pratik likes this.
  3. pratik

    pratik Notable Member

    Messages:
    2,308
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    200
    #3
    Thanks it worked...
    Infact you gave me a better solution... instead of excluding categories.. I can just include the category I wanted!
     
    pratik, Dec 20, 2009 IP