Shop Page – Pagination showing duplicated products
-
Hi,
Woo Commerce seems to duplicate products on my shop page. After clicking load more options, i can see the same products at down.. I am working in local. So unable to share the page link but i will attach the screenshots..
Here is the screenshots of the issue,
1. Showing 4 products first – https://prnt.sc/20xc60u
2. After clicking load more for the first time(here two products from above repeated) – https://prnt.sc/20xc6in
3. Second load more (its correct showing remaining 2 products) – https://prnt.sc/20xc71kHere is the screenshot of the coding,
1. Loadmore.js file ajax – https://prnt.sc/20xc7oj
2. custom coding – https://prnt.sc/20xc85wI think the problem is with the query_posts($args); along with offset..
When offset is set to 4 for the first load more, this query returns the 2 duplicate products.Page, posts per page, offset variables passing correctly for the every page, but the query only returns the duplicate products. Instead of this, I have used get_posts($args), this will also cause the same issue.
So kindly help me to solve this issue.. Please..
Thanks.
- The topic ‘Shop Page – Pagination showing duplicated products’ is closed to new replies.