Results 1 to 1 of 1

Thread: Random 5 ads after every single ad

  1. #1
    Thread Starter
    Amateur aristidov's Avatar
    Join Date
    Jan 2011
    Location
    Bulgaria
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Random 5 ads after every single ad

    Hello,

    i use Wordpress 3.3.2 and Classipress 3.1.9

    I want to show after every single ad, 5 random ads. I try use this code:

    in single-adlisting.php right after <?php appthemes_after_loop(); ?> ~row 184
    i have added this code:
    PHP Code:
    <?php
                        
    // show all random ads but make sure the sticky featured ads don't show up first
                  
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                  
    query_posts( array('post_type' => APP_POST_TYPE'ignore_sticky_posts' => 1'orderby' => 'rand''paged' => $paged'posts_per_page' => 5) );
               
                    
    ?>
                     <?php get_template_part'loop''ad_listing' ); ?>
    So, now i see random 5 ads, you can see example here: http://podatel.com/1405
    But i want to remove pagination after this 5 random ads? I try everything what i know, but unfortunately without success.
    Can somebody php or classipress guru help me with this issue?

    Thanks in advanced!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [TUTORIAL] A MOD for Previous and Next Navigation for Single ADS Pages -- single-default.php
    By vienna in forum ClassiPress General Discussion
    Replies: 13
    Last Post: October 1st, 2013, 12:03 AM
  2. Random listing
    By missou55 in forum Report Vantage Bugs (Legacy)
    Replies: 17
    Last Post: October 25th, 2012, 06:17 PM
  3. Most Popular and Random
    By massimorufo in forum ClassiPress General Discussion
    Replies: 6
    Last Post: August 26th, 2012, 01:06 AM
  4. Random Tab First
    By zidane101 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: January 27th, 2012, 07:09 PM