Tell us what you are trying to do? I need to pull data from another custom post type (not created with Toolset) and extract a location address from a taxonomy and display it in a View using a custom shortcode.
Is there any documentation that you are following? I found an example in the support forum that I started from and came up with this:
// Term Meta Short Code for Location Address
function display_termmeta_location_address_func($atts)
{
$slug = get_term_meta( get_the_ID(), 'location_address',true);
return types_render_termmeta( $slug , array() );
}
add_shortcode( 'display_termmeta_location_address', 'display_termmeta_location_address_func' );
And the shortcode of...
[display_termmeta_location_address slug="location_address"]
Is there a similar example that we can see? Here's a link to the development page with the events data I'm pulling in so far.
hidden link
The plugins taxonomy field I'm trying to display can be found here:
hidden link
The taxonomy meta field I'm trying to display is "location_address"
And my content template looks like this:
<div style="margin-top: 20px;">
[wpv-post-title]<br>
Date: [start-new-day]-[end-new-day] [wpv-conditional if="( $(evcal_repeat) eq 'Yes' )"]Recurrence: [wpv-post-field name='evcal_rep_freq'][/wpv-conditional]<br>
[wpv-post-body view_template="None" suppress_filters="true"] [wpv-post-taxonomy type="event_type_4" format="name"], [wpv-post-taxonomy type="event_type_3" format="name"] [start-new-time]-[end-new-time], [wpv-post-field name='evcal_location_name'], [display_termmeta_location_address slug="location_address"], [wpv-post-field name="evcal_cmd_1"] [wpv-post-field name="evcal_lmlink"]
</div>
I'm already using several custom shortcodes in this template - [start-new-day], [end-new-day], [start-new-time], [end-new-time] - which are pulled from a custom post field. But I can't seem to figure out how to pull the address from the "location_address" taxonomy term metadata and display it after the location name in the event listing.
Any help would be appreciated.