Replies: 1 comment
-
Solution:
Major facepalm moment when I realized what was happening... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a collection of products that have unique identifiers. Some of the products have accessories that are also products. I am using pagination to generate one page per product, but I would like to list the accessory image and title in a div at the bottom.
Is there a way to use a collection in a shortcode so that I can use a find or filter method to get the accessory product object?
Alternatively, is there a better way to accomplish the task other than looping through the entire array of products?
Beta Was this translation helpful? Give feedback.
All reactions