Pods CMS – Get ACT’s attached image records by auto-id?
You’re right, the attachments are stored within a separate table called wp_podsrel. Within the table you’ll find the item_id (coupon id) and the related_item_id (attachment id). Hence you can get all the related_item_id‘s as a function of the item_id: SELECT related_item_id FROM wp_podsrel WHERE item_id = $coupon_id Your complete query/output may look something like this: … Read more