Support

Home Forums Event Espresso Premium Post Meta value

Post Meta value

Posted: October 6, 2020 at 11:56 am


ICLE

October 6, 2020 at 11:56 am

Need post meta value for “template use” (email) to populate a ninjatables pro report.

When I need to make a report on multiple events, I make a ninjatable pro table. That allows me to get the data from each event using post meta or ACF values.

I need to make a tabular report on events and the email templates assigned to them. I know I can page by page through the list but that takes too long to find errors/misconfigurations.

Can anyone identify the postmeta associate to the email dropdown layout assignments?


Tony

  • Support Staff

October 7, 2020 at 4:18 am

Hi there,

Other than what you can see in ‘Custom Values’ or ACF fields (which are just still essentially just custom fields), none of the EE event data is store in what would be referred to as ‘post meta’ so can not be pulled into other plugins that allow for ‘post meta’.

The templates related to each individual event are stored in a custom table and the easiest way to pull that info in is using our model system, for example:

$templates_for_event = EEM_Message_Template_Group::instance()->get_all_custom_templates_by_event(
    $event_id,
    array(
        'MTP_messenger' => 'email',
        'MTP_is_active' => true
    )
);

Will pull in all active email message templates on an event (you’ll need to set $event_id to the correct ID) but getting that across into ninjatables pro isn’t easily done.

The support post ‘Post Meta value’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso