Skip Navigation

[Resolved] using tribe events post meta in views

This support ticket is created 6 years, 2 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1115196

hi—

im creating a view that uses the tribe events fields when creating a single event in the tribe events calendar plugin. i've poured through past support threads, many of which have gotten me off on a great start. however there are two fields im unable to access and looking for some help— the title of the venue, and date/time.

first off, via this thread i thought i'd be able to get at the title of the venue using this code:

 [wpv-post-field name='_VenueVenue' id="[wpv-post-field name='_EventVenueID']"]

but no dice. it works for the venue city per the example in the support response, but not the title of the venue. what am i missing here?

second, via that same thread, i'd like to separate out the date and time of an event, however the shortcode referenced did not work for me at all.

// Add Shortcode
function get_EventStartDate($date) {
    //$postid = get_the_ID();
    $rawfield = get_post_meta(get_the_ID(), '_EventStartDate', true );
    $timestamp = strtotime($rawfield);
    $date = date('d-m-Y', $timestamp);
     
    return $date;
}
add_shortcode( 'tec-start-date', 'tec_event_start_date' );
 
// Add Shortcode
function get_EventStartTime($time) {
    //$postid = get_the_ID();
    $rawfield = get_post_meta( get_the_ID(), '_EventStartDate', true );
    $timestamp = strtotime($rawfield);  
    $time = date('H:i', $timestamp);
 
    return $time;
}

in settings>front-end content i registered the shortcodes but here too, no dice, what am i missing?

you can see the view im building here: hidden link

#1115577

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please share access details so I can check what's going wrong with the shortcode you are using and also let me know with one test example which event venue you want to display.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.