Can we get the url of an attachment parent?
-
Is there a way for MLA to find the url of an attachment’s parent? In other words, if I have a Woocommerce product and add an image to it, can we set up a template or custom field that will get the product’s permalink? Then, when we create a gallery, we can choose to link the thumbnails to the parent product if it exists, or link directly to the image file by default.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Can we get the url of an attachment parent?’ is closed to new replies.