Results 1 to 1 of 1

Thread: How do I create a random rotation standard listings

  1. #1
    Thread Starter
    Member charterbase's Avatar
    Join Date
    Sep 2011
    Location
    United States
    Posts
    84
    Thanks
    37
    Thanked 3 Times in 3 Posts

    How do I create a random rotation standard listings

    I have a large number of standard listings. I would like them to rotate at random, similar to a previous post regarding randomizing featured ads. Appreciate any help you could give in modifying this as well as where i would insert the code

    From the post regarding random featured ads: http://forums.appthemes.com/what-if-...-choose-33137/
    "This could be achieved by adding a sort parameter 'orderby' => 'rand' to the query in includes/featured.php"

    There were two methods shown

    $args = array(
    'post_type' => VA_LISTING_PTYPE,
    'posts_per_page' => $va_options->featured_per_page,
    'paged' => get_query_var( 'page' ),
    'orderby' => 'rand'
    );

    or
    $args = array(
    'post_type' => VA_LISTING_PTYPE,
    'posts_per_page' => VA_MAX_FEATURED,
    'orderby' => 'rand'
    );

    Thanks in advance
    tom

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Featured ads listings under the Homepage Tabs instead of Random listings
    By Fanatic in forum ClassiPress General Discussion
    Replies: 5
    Last Post: August 13th, 2015, 03:22 AM
  2. Standard Back End Custom Fields on Listings
    By msunyich in forum Vantage General Discussion (Legacy)
    Replies: 4
    Last Post: October 19th, 2012, 11:25 PM
  3. VANTAGE Alphabetically Organise Standard Listings - And Possibly Paginate a-z
    By lockhartg in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: October 1st, 2012, 07:24 AM
  4. How to make the homepage show random listings by default?
    By mathmoose in forum ClassiPress General Discussion
    Replies: 2
    Last Post: March 5th, 2012, 09:37 AM
  5. latest listings can i change this to show random pics
    By birdy in forum ClassiPress General Discussion
    Replies: 2
    Last Post: July 31st, 2009, 12:30 PM