Skip Navigation

[Resolved] Get related parent post custom field in child post using meta key

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 0 replies, has 1 voice.

Last updated by olliM-3 5 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#1311259
Toolset_2.png
Toolset_1.png

Hi,

I have two one-to-many related post types: Seller and Product.
I'm using WooCommerce as my E-Commerce plugin.
I want to send an email to the Seller of a Product when the product is sold.

To send the notifications I'm using Notification plugin (https://wordpress.org/plugins/notification/)
The Notification plugin allows me send emails to an email address that I have in a Product custom field using this merge tag: {postmeta {product_ID} seller-email}
See image attached.

I have set the Notification plugin set to send an email when the product is sold.

My question is: Is the Seller (Parent) custom field seller-email stored somewhere in the Product meta so I can retrieve using a meta key or merge tag?

Otherwise the Seller to Product relationship works beautifully.

I attached some images to illustrate what I'm trying to do.