Pagination and shortcode
-
Hello there.
In one page I want to show me all the products in a certain category.
I used a shortcode for this.
[product_category category=“cat x” per_page=”12″ columns=”4″ paginate=”true” orderby=”default” order=”asc”]
Everything OK.The only problem is that the pagination does not work. It appears for a few seconds (both at the top of the page SHORT BY and ROW GRID, as well as at the bottom of the page, the pagination itself) and then disappears (in the other/default loop pages, it works).
I tried that too, but it still doesn’t work.
add_action(‘after_setup_theme’, function() {
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 10 );
});I use the Porto theme, Gutenberg, everything up to date
No cache, no optimisation plugin, clear transients, refresh…How can I solve this situation please?
Thank you.
- The topic ‘Pagination and shortcode’ is closed to new replies.