• Resolved Eve

    (@etransac)


    Hi Greg,

    is there a short code we can use to disable pagination in the advert list ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, i am afraid not, what you can do is set in [adverts_list] shortcode a posts_per_page param to some big number for example `[adverts_list posts_per_page=”1000″] then the shortcode will display 1000 items per page.

    Thread Starter Eve

    (@etransac)

    Thanks Greg.. I already set the number to 1000 it works great on classified ads itself but when category is selected it gives me the default 20 items.. Btw i use CSS to hide the pagination and its working.. only the number of ads listed by category is where im having problem.

    Can please help me ? THANK U

    Plugin Author Greg Winiarski

    (@gwin)

    Try adding following code to your theme functions.php file

    
    add_filter("adverts_list_query", "burst_posts_per_page");
    function burst_posts_per_page( $args ) {
        $args["posts_per_page"] = 1000;
        return $args;
    }
    

    This should make the category pages display 1000 items per page as well.

    Thread Starter Eve

    (@etransac)

    Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable Pagination’ is closed to new replies.