Results 1 to 6 of 6

Thread: Showing Latest Ads In Slider Instead Of Featured Ads

  1. #1
    Thread Starter
    Expired Customer drhur's Avatar
    Join Date
    Aug 2016
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Showing Latest Ads In Slider Instead Of Featured Ads

    Hello,

    Currently I am not using featured ads and would like to show the latest ads in the slider instead and control how many of the latest ads which will be shown.

    I know this has been discussed and in this thread junnydc writes the following:

    Quote Originally Posted by junnydc
    open featured.php

    look for this line
    <?php query_posts( array('post__in' => get_option('sticky_posts'), 'post_type' => APP_POST_TYPE, 'post_status' => 'publish', 'orderby' => 'rand') ); ?>

    and change to this
    <?php query_posts( array( 'post_type' => APP_POST_TYPE, 'post_status' => 'publish','ignore_sticky_posts' => 1,'posts_per_page' => 5) ); ?>

    5 means you're showing the 5 latest ads. Just change this to your desired X records to display.
    I can't find this in my featured.php, where do I find it? I would like to change the behaviour just as explained above.

  2. #2
    Thread Starter
    Expired Customer drhur's Avatar
    Join Date
    Aug 2016
    Posts
    10
    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
    serhanaydemir's Avatar
    Join Date
    Dec 2011
    Location
    United States
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Expired Customer drhur's Avatar
    Join Date
    Aug 2016
    Posts
    10
    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
    jovan018's Avatar
    Join Date
    Jan 2015
    Location
    Chicago, IL
    Posts
    79
    Thanks
    10
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Best regards
    Jovan

    www.NaProdaju.com

  6. #6
    Thread Starter
    Expired Customer drhur's Avatar
    Join Date
    Aug 2016
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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. After latest WP update 4.5.3, featured jobs not showing
    By ultiwarbezit in forum Report JobRoller Bugs
    Replies: 14
    Last Post: August 29th, 2016, 10:46 AM
  2. [SOLVED] Featured Slider Disappeared with latest WP update.
    By tkddroid in forum Simply Responsive
    Replies: 17
    Last Post: January 23rd, 2016, 04:13 PM
  3. Featured Slider not picking up the latest Coupons
    By mannemvamsi in forum Report Clipper Bugs
    Replies: 7
    Last Post: December 31st, 2013, 02:20 PM
  4. Showing Latest Ads In Slider Instead Of Featured Ads
    By valance in forum ClassiPress General Discussion
    Replies: 7
    Last Post: December 21st, 2011, 06:41 PM
  5. Showing Latest Ads In Slider Instead Of Featured Ads
    By valance in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: December 16th, 2011, 02:28 AM