Forum Replies Created
-
AuthorPosts
-
JoeMember
Thanks Paul and Rob. No, deactivating Contact Form 7 didn’t fix it.
JoeMemberSorry, after I updated “The Events Calendar” I saw the update prompt for “Events Calendar Pro.” With both of them updated to 2.0.2 the “next event” bug seems to be resolved. Thanks!
JoeMemberHere’s what’s in my theme’s header.php file that sets the title ([ ]s instead of s):
[title][?php wp_title ( '|', true,'right' ); ?][/title]
That’s not unusual is it?JoeMemberDangit, I thought wrapping it in [code][/code] tags would work. Here, replace the [ ]s with s.
[?php echo tribe_get_start_date( null, false, 'g:i a' ); ?] – [?php echo tribe_get_end_date( null, false, 'g:i a' ); ?]
JoeMemberTake a look at the PHP date function: http://php.net/manual/en/function.date.php
Then you can call tribe_get_start_date and tribe_get_end_date using custom formats. To produce the format you listed (12 hour times with lowercase am/pm), you could use the PHP date syntax ‘g:i a’ — for example:
–
JoeMemberHi Rob et al, I just updated to 2.0.2, but I’m still seeing a bug with my “next event” links. Every “next event” link just goes to the current event. Can you help?
JoeMemberHi guys, thanks for checking up on this. I can’t remember for sure, but it’s possible that when I first created the event, the end time was earlier than the cutoff time — i.e. I moved it to 4am after the event was already created. Could that cause this issue?
JoeMemberThat works perfectly. Thanks again for the great support on this!
JoeMemberSorry, guess there’s a reason why pastebin is preferred:
http://pastebin.com/ZiMD3gwtJoeMemberStill outputting links to all categories in the system. :/ Just to confirm, here’s the full function:
function tribe_meta_event_cats( $label=null, $separator=', ') {
if( !$label ) { $label = __('Category:', 'tribe-events-calendar'); }$tribe_ecp = TribeEvents::instance();
//the_terms( get_the_ID(), $tribe_ecp->get_event_taxonomy(), ''.$label.'', $separator, '' );$args = array( 'orderby' => 'slug' );
$terms = get_terms($tribe_ecp->get_event_taxonomy(), $args);
$count = count($terms); $i=0;
if ($count > 0) {
echo '' . $label . '';
echo '';
foreach ($terms as $term) {
$i++;
$term_list .= 'slug . '" title="' . sprintf(__('View all post filed under %s', 'my_localization_domain'), $term->name) . '" class="' . $term->slug . '">' . $term->name . ', ';
}
echo $term_list;
echo '';
}}
JoeMemberNo luck. Does get_the_ID() need to go anywhere?
JoeMemberThat’s awesome, thank you Jonah! One thing though: it looks like that creates a link for every category in the system, instead of just the categories for that particular event.
JoeMemberThanks Jonah, I’ll take a look at that. How can I output the category slug to give each link its own unique class?
JoeMemberThanks Rob. Do you need wp-admin access or FTP access?
JoeMemberNever mind! Found it in admin-views/event-map.php right after I posted that.
-
AuthorPosts