Results 1 to 5 of 5

Thread: Limited Featured Slider by Category

  1. #1
    Thread Starter
    Newbie mattsweet's Avatar
    Join Date
    Jan 2012
    Location
    United Kingdom
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Limited Featured Slider by Category

    Hi,

    I've just bought this theme and am spending time modifying it now to suit my site.

    I'm having a bit of trouble working out how to limit post querys by ad category. I know how to do this for standard wordpress posts but I'm struggling to get it to work for ads.

    The start of the featured code is this:

    Code:
     <?php query_posts( array('post__in' => get_option('sticky_posts'), 'post_type' => APP_POST_TYPE, 'post_status' => 'publish', 'orderby' => 'rand') ); ?>
    I assumed you would just add a limiter such as category or cat_id etc and use the numerical category id but I can't get anything to work... I've tried this:

    Code:
      <?php query_posts( array('post__in' => get_option('sticky_posts'), 'post_type' => APP_POST_TYPE, 'post_status' => 'publish', 'orderby' => 'rand', cat_id' => 'xx') ); ?>
    but it's not limiting it... Any help would be much appreciated!
    Matt

  2. #2
    Thread Starter
    Newbie mattsweet's Avatar
    Join Date
    Jan 2012
    Location
    United Kingdom
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,785
    Thanks
    186
    Thanked 742 Times in 623 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

  4. #4
    furnier's Avatar
    Join Date
    Dec 2011
    Location
    Puerto Rico
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    gspinney's Avatar
    Join Date
    Mar 2013
    Location
    Canada
    Posts
    24
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Featured Listing Slider Ads Not Showing in Slider
    By kplunk in forum Report ClassiPress Bugs
    Replies: 11
    Last Post: June 12th, 2016, 10:14 PM
  2. Limited time for featured ads
    By bas1968 in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: September 30th, 2011, 01:53 AM
  3. Replies: 4
    Last Post: December 30th, 2010, 04:50 PM
  4. category drop down limited to 5
    By aggieoutlaw8 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: November 19th, 2010, 04:12 PM