May I ask what kind of data are we talking about? Most of Event Espresso’s event and registrant data isn’t stored in post meta, they’re stored in custom tables. If you look in the database (with a tool like phpmyadmin) you’ll find the data in tables prefixed with esp.
Ninjatables has a way of posting the following field types:
Advanced Custom Fields (ACF) (I’ve done this and it rocks)
*Post Meta
*Shortcode / Computed Value or HTML
Featured Image (this type of data is not of concern)
*Are there values from EventEspresso for these field types? I’m trying to get ahold of the category values.
A category value is a WordPress taxonomy value. That’s stored in the wp_term_relationships and wp_term_taxonomy tables. You could check with Ninjatables pro support to see if they support data from those tables.
<?php
/*
* Say we want to change data of table id 1477 then you can write the following
* code.
* $data is the array of frontend data
*/
add_filter(‘ninja_tables_get_public_data’, function ($data, $tableId) {
if ($tableId == 1477) {
$data[] = [
‘name’ => ‘Dynaic Name’,
’email’ => ‘my@dyne.com’,
‘phone’ => ‘983129123123’
];
}
return $data;
}, 1
That’s not much of a helpful example because it doesn’t show how to grab taxonomy data for the post.
I’ll be honest with you, I’ve never used NinjaTables so I don’t know what it does or how it works. From what you’ve posted here though, it doesn’t sound like it supports getting taxonomy related data (only post meta data).
Viewing 7 reply threads
The support post ‘Shortcodes/Post Meta for Ninjatables Pro table display’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.