• Resolved adamj16

    (@adamj16)


    Hi, is there a way to pull in data from custom post type *custom* fields into email templates?

    The data from the default WP fields (e.g. excerpt, featured image) in a CPT is returned, so I have tried {{post.my-custom-field-name}} but this just outputs the tag string itself as text.

    If custom fields can be used in email templates, what is the correct format for the tag?

    Many thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @adamj16,

    Thank you for reaching out to us! We apologize for the delayed response due to the weekend holiday.

    Currently, Icegram Express supports pulling data from the default WordPress post fields (such as title, excerpt, featured image, etc.) when using Custom Post Types (CPTs) in email templates.

    However, custom fields or post meta are not directly supported via merge tags, so attempting to include  {{post.my-custom-field-name}}  will display as plain text.

    If you need to incorporate custom field data, a possible workaround would be to use custom code or hooks to modify the content before it’s sent, or to map that data into one of the supported default fields.

    Please let us know which custom fields you are trying to use and how they are created (e.g., ACF, Meta Box, native post meta, etc.). We would be happy to suggest the best approach for your setup.

    we look forward to your response!

    Thread Starter adamj16

    (@adamj16)

    Many thanks for your reply. I’m using Pods but in the end I decided to change the tack completely. Although I would still prefer to use the CPT data directly, I will do what I need to achieve “outside” of the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.