Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude displayed product from showing up in results #10

Open
johannesholmqvist opened this issue Jan 15, 2018 · 1 comment
Open

Exclude displayed product from showing up in results #10

johannesholmqvist opened this issue Jan 15, 2018 · 1 comment
Assignees

Comments

@johannesholmqvist
Copy link

Hi there,
Thanks for a great plugin. I'm using the woo_products_custom_tax shortcode on content-single-product.php to list products with the same taxonomy and term, e.g. books from the same country as the book displayed.

Is there a simple way to exclude the current book from the query, so I don't get the product the visitor is currently looking at showing up in the shortcode loop?

Perhaps it's an easy customization I could do myself in the code?

Thank you in advance!

Johannes

@johannesholmqvist
Copy link
Author

I managed to fix this by myself, but it might be something others are looking for, too.

Johannes

@elvismdev elvismdev self-assigned this Jan 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants