J
J
jazzman72021-11-16 18:49:18
WooCommerce
jazzman7, 2021-11-16 18:49:18

How to display woocomerce category with pagination?

Hello. In general, the task is: to display the number of products from each category n on the main page and add the "load more" button, everything went surprisingly quickly with the button, I thought I would write bicycles now, but everything was decided by the WooCommerce Load More Products plugin, that's just the plugin works in the categories themselves, but I need it on the main one, and there is already trouble ...
I display the categories like this

echo do_shortcode('[product_category per_page="60" orderby="date" order="desc" category="test"]');

but once you add paginate="true", everything disappears.
How to make pagination or how else to display products on the main page with dynamic loading?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy, 2021-11-16
@Evdokim001

Personally, I use WP_Query in this situation. Set the necessary values ​​​​in the arguments and use it to your health)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question