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

How to display connections in woocommerce product list #441

Open
andrearuffini opened this issue May 12, 2014 · 1 comment
Open

How to display connections in woocommerce product list #441

andrearuffini opened this issue May 12, 2014 · 1 comment

Comments

@andrearuffini
Copy link

I have a many to many connection from woocommerce products custom type to a manufacturer custom type.
When I try to display the manufacturer's connections on the single product page everything works but when I try to display the same connections on the products list page (in every product listed) it does not work.

I tried get_queried_object() and each_connected() methods but no one worked for me.

I think I need to add an each_connected() call into the woocommerce_loop.

Do you have any solution?

Thanks,
Andrea

@zambadu
Copy link

zambadu commented Feb 3, 2015

I have a similar problem.
But I think it doesn't depend on woocommerce, because I don't use it.
At my site the problem appears only on pages that uses the build-in search of wordpress. That might be the product lists in woocommerce.
On all other pages it works fine, with the exact same code.
I couldn't figure out why. Also forcing the connection with 'connected_direction' and 'post_type' didn't work out.

Thanks for any help with that,

zambadu

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