Forum Replies Created
-
AuthorPosts
-
SeanParticipant
This reply is private.
SeanParticipantyes – but please walk me through the process……
SeanParticipantOK – I know about this page, but still need help with unsubscribing.
Can you please walk me through it.
February 13, 2018 at 6:36 am in reply to: Recurring Event – Display All not showing All in popup #1451597SeanParticipantHI,
We’ve rewritten this code so that it works now.
add_filter( ‘tribe_get_recurrence_text’, ‘cwd_add_first_event_date’ );
function cwd_add_first_event_date( $recurrence_text ) {$recurrence_text = ''; $date_format = tribe_get_datetime_format(); $recurrence_start_dates = tribe_get_recurrence_start_dates(); foreach ( $recurrence_start_dates as $recurrence_start_date ) { $recurrence_start_date_formatted = date( $date_format, strtotime( $recurrence_start_date ) ); $recurrence_text .= '<p>Course on ' . $recurrence_start_date_formatted . '</p>'; } return $recurrence_text;
}
Thank you
Sean Clarke · Clarke Design · Helping your business untangle the web
Email: [email protected]
Web: http://www.clarkedesign.co.uk
Tel: 01270 761331Clarke Website Design Ltd is registered in England and Wales under company number 07324906 and our registered office is at 9 Ossmere Close, Sandbach, Cheshire CW11 1FB
Clarke Design is a trading name of Clarke Website Design Ltd. Clarke Design operates under the Clarke Website Design Ltd Terms and Conditions
All email communications are private and confidential to the intended addressee. If you believe you have received this email in error please delete it and inform our office at: [email protected]
February 13, 2018 at 5:58 am in reply to: Recurring Event – Display All not showing All in popup #1451563SeanParticipantHI,
This does not work correctly, as it just shows the current event date again, not the first event date for the appropriate set of events.
[cid:[email protected]]
Thank you
Sean Clarke * Clarke Design * Helping your business untangle the web
Email: [email protected]
Web: http://www.clarkedesign.co.uk
Tel: 01270 761331
Clarke Website Design Ltd is registered in England and Wales under company number 07324906 and our registered office is at 9 Ossmere Close, Sandbach, Cheshire CW11 1FB
Clarke Design is a trading name of Clarke Website Design Ltd. Clarke Design operates under the Clarke Website Design Ltd Terms and Conditions
All email communications are private and confidential to the intended addressee. If you believe you have received this email in error please delete it and inform our office at: [email protected]
February 9, 2018 at 7:59 am in reply to: Recurring Event – Display All not showing All in popup #1448955SeanParticipantYes we do.
If you are in one of the “not main events” and hover over the tooltip activator, then I would expect it to show the main event, as that is another available date for that family of events, that’s just obvious to us.
If you could let us have a snippet to achieve this please that would be great.
SeanParticipantFor the benefit of other – I’ve completed this with a new function:
Below is my code
if ( function_exists( 'cwd_display_recurring_events' ) ) {
global $post;
echo cwd_display_recurring_events( $post );
}`function cwd_display_recurring_events( $post ) {
$return = FALSE; if ( ! tribe_is_recurring_event() ) { return $return; } if ( is_null( $post ) ) { return $return; } $date_args = array ( 'posts_per_page' => - 1, 'post_type' => 'tribe_events', 'orderby' => 'meta_value', 'meta_key' => '_EventStartDate', 'order' => 'ASC' ); if ( $post->post_parent != 0 ) { $date_args['post_parent'] = $post->post_parent; } else { $date_args['post_parent'] = $post->ID; } $date_query = new WP_Query( $date_args ); if ( $date_query->have_posts() ) { $date_format = tribe_get_date_format(); $return .= '<div id="tribe-events-other-dates">'; $return .= '<h3>Other Course Dates</h3>'; $return .= '<p>This course is also available on:</p>'; $return .= '<ul>'; while ( $date_query->have_posts() ) { $date_query->the_post(); $event_id = get_the_ID(); $event_start_unix = date( 'U', strtotime( get_post_meta( $event_id, '_EventStartDate', TRUE ) ) ); $event_start_time = tribe_get_start_date( $event_id, TRUE, 'ga' ); $event_end_time = tribe_get_end_date( $event_id, TRUE, 'ga' ); $return .= '<li>' . date( $date_format, $event_start_unix ) . ' @ ' . $event_start_time . ' - ' . $event_end_time . '</li>'; } $return .= '</ul>'; $return .= '</div>'; } wp_reset_postdata(); return $return . ' ';
}`
SeanParticipantHi, “In that case, you could simply use the Events Calendar Pro recurring events feature and display the recurrences of the events in the single event view.” sounds great….
But how do I do this ?
i don’t know how to “display the recurrences of the events in the single event view.”
SeanParticipantThe spinner is in the video on https://theeventscalendar.com/product/wordpress-wootickets/
at about time index 1:23 -
AuthorPosts