I have have metaobjects that references a list of products.
For example:
I have created a “Artist” metaobject
This metaobject has some fields such as name, location and releases.
Releases is a list of references to products “Releases” for that specific artist.
In the admin for example i can see a list of all the products being referenced for that artist, but i havent been able to find a way to do the same on my template. where i want to list all the releases that artist has when user goes to the Artist metaobject page.
The only way we could accomplish this is to create a category with all the products for that metaobject and then assign it to the metaobject itself. But this way we are having more work.
But personally I don’t think it makes sense. There should be a way to access the products referenced by a metaobject
Here is some code to get you started. It will pull in a list of products and the URL, featured image, title, and description for each of them. Then you can use CSS to customize the appearance or figure out how to pull in different data fields from the products and reorder them.
{% paginate collections[“all”].products by 3000 %}
{% for product in collections.all.products %}
{% if product.metafields.custom.METAFIELD_NAME_HERE.value.title == metaobject.title %}
This needs to be pulled up to @Shopify_77 that the admin can list all references of a metaobject, but we cannot easily reference this list in the frontend. Having to use hacks like mentioned to manually loop through ALL items to find reference to it.