When the URL of the products page is /?product_cat=tricka&paged=1 the subcategories are shown. When i change the page to /?product_cat=tricka&paged=2 the subcategories disappier.
I'm getting the subcategories like that:
<?php
$subcategories = woocommerce_maybe_show_product_subcategories();
if ( $subcategories ) {
echo '<div class="products subcategories row custom-category-align-and-border">', $subcategories, '</div>';
}
What could be the issue here?
Couldn't find solution anywhere..
You can check whether the variable returns empty and generate the required HTML code yourself.