The code includes 2 custom WooCommerce product loops which you can display in any position on your single products page. Only unique products are displayed removing duplicates including the current product the loops are displayed on. Out of stock products are also removed.
In this example, the 1st loop is shown before the single product and the 2nd after the single product.
![Remove Duplicate Products When Using 2 Loops For Products In Same Taxonomy Term](https://wpsites.net/wp-content/uploads/2022/05/109715-1.png)
Installation
There’s only 1 step :
Copy & paste the PHP code ( excluding the opening PHP tag ) from the functions.php file to the end of your child themes functions file or custom functionality plugin.
You must be logged in to post a comment.