Hello!
I had a problem with 24/48/All results navigation before and i saw in one of your topics an answer how to resolve it and followed it. What i have now is this:
<div class="woocommerce-count-wrap">
<p class="woocommerce-result-count">
<?php
$paged = max( 1, $wp_query->get( 'paged' ) );
$per_page = $wp_query->get( 'posts_per_page' );
$total = $wp_query->found_posts;
$first = ( $per_page * $paged ) - $per_page + 1;
$last = min( $total, $wp_query->get( 'posts_per_page' ) * $paged );
if ( 1 == $total ) {
_e( 'Showing the single product', 'swiftframework' );
} elseif ( $total <= $per_page ) {
printf( __( 'Showing all %d products', 'swiftframework' ), $total );
} else {
printf( __( 'Showing %1$d–%2$d of %3$d products', 'swiftframework' ), $first, $last, $total );
}
?>
</p>
<p class="woocommerce-show-products">
<span><?php _e("View", "swiftframework"); ?> </span>
<a class="show-products-link" href="?show_products=24">24</a>/<a class="show-products-link" href="?show_products=48">48</a>/<a class="show-products-link" href="?show_products=<?php echo $total;?>">All</a>
</p>
</p>
</div>
What it does for me (i have close to 200 products) it does do the links to the 48 and All but it shows ALL AND I MEAN ALL products no matter if I click on 24 or 48 or All.
Do you know how can I fix it?