0

I need to display 100 product on product category page at once, if there are 100 available .

Is there any specific function to do it.

Thanks, Nimesh

closed as off-topic by mmm, Jacob Peattie, TheDeadMedic, fuxia Aug 12 '18 at 23:03

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • There's a setting, in the Customiser... – Jacob Peattie Jul 29 '18 at 10:43
1

I need to display 100 product on product category page at once, if there are 100 available .

What should happen if you dont have 100 Products?
Or do you want to show just all products?

Anyway, you can try changing the query parameters (specifically here the posts_per_page parameter) on product category pages only.

You can use a WooCommerce hook to do this.

add_action( 'woocommerce_product_query', 'my_custom_query_code' );
function my_custom_query_code( $query ){
    // only on product category pages, no other archives
    if ( is_product_category() ) {

        $limit = '100'; // the number of products

        // set the new "posts_per_page" parameter
        $query->set( 'posts_per_page', $limit );
    }
}

Not the answer you're looking for? Browse other questions tagged or ask your own question.