Hello,
I'm working on an e-commerce site with Toolset and WC and face this issue :
I have placed product categories into the menu
When I access to one of the categories thanks to the menu, then, the page number in thepagination does not take into account the category count, but display the total product count. Here is the url to access :
hidden link
Now, I have placed product categories as a filter inside my Views and if I use it, then the pagination is fine. Here is the url to access :
hidden link
And here is the code I have place inside my Views to display the pagination :
[wpv-layout-start]
[wpv-items-found]<div class="wpv-pagination-nav-links-container">[wpv-pager-nav-links]</div>
<!-- wpv-loop-start -->
Did I miss something? I would like the pagination to reflect the number of products into each category
Regards
Pat
Dear Pat,
Are we talking about a taxonomy archive page?
If it is, please try another shortcode:
Archive for [wpv-taxonomy-archive info="count"]
More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-archive
This shortcode displays information about the current taxonomy (usable only for taxonomy queries).
Hi Luo,
Thanks for your feedback.
The issue is that I need to access taxonomy archive pages thanks to the menu. So, I have placed the different product categories inside the menu (using the standard WordPress drag and drop), and then, when I click on the submenu related to a specific product taxonomy, the pagination still displays all the total pages (and not the toal pages of this product taxonomy)
Can you reproduce this ?
Regards
Pat
In WordPress archive page, normal view won't be able to work as expected, you will need to setup Views wordpress archive for it:
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
Then display the paginations with Views shortcodes, for example [wpv-pager-archive-nav-links]
Displays a list of pages, enabling visitors to click on a page.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-archive-nav-links
And [wpv-pager-archive-total-pages]
This shortcode displays the total pages number.
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-pager-archive-total-pages