Forum Replies Created
-
AuthorPosts
-
Niall
Participantfigured it out:
// cc someone when an event email is filled out
function tribe_add_admin_email_to_rsvp_email_recipient( $to ) { if ( ! is_string( $to ) ) { return $to; } $combined_to = array( $to, tribe_get_organizer_email() ); return $combined_to; } add_filter( 'tribe_rsvp_email_recipient', 'tribe_add_admin_email_to_rsvp_email_recipient' );March 19, 2016 at 10:54 am in reply to: move my site from local to hosted and got an error: #1091411Niall
Participantit was a wp_config.php debug thing, nevermind
Niall
ParticipantJosh, If this works I’ll name my first child after you. Thanks for the lead
Niall
Participantokie dokie, thanks anyway
Niall
Participantcan I place the method in my theme’s functions.php file and have it override the one in the plugin core?
Niall
Participantupdate,
Ive created a much sexier loop, so this is the function I’d like to add the pagination to:function do_easy_event_list() { // Safety first! Bail in the event TEC is inactive/not loaded yet if ( ! class_exists( 'Tribe__Events__Main' ) ) return; // Has the user paged forward, ie are they on /page-slug/page/2/? $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; // Build our query, adopt the default number of events to show per page $upcoming = new WP_Query( array( 'post_type' => Tribe__Events__Main::POSTTYPE, // 'paged' => $paged, 'eventDate' => $current_date, 'eventDisplay' => 'day', 'tax_query' => array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'slug', 'terms' => array('adults'), 'operator' => 'NOT IN' ) ) ) ); // If we got some results, let's list 'em while ( $upcoming->have_posts() ) { $upcoming->the_post(); $title = get_the_title(); $date = tribe_get_start_date(); // Of course, you could and probably would expand on this // and add more info and better formatting echo "<p> $title <i>$date</i> </p>"; } // Is Pagenavi activated? Let's use it for pagination if so if ( function_exists( 'wp_pagenavi' ) ) wp_pagenavi( array( 'query' => $upcoming ) ); // Clean up wp_reset_query(); } // Create a new shortcode to list upcoming events, optionally // with pagination add_shortcode( 'easy-event-list', 'do_easy_event_list' );thanks!
March 17, 2016 at 8:03 am in reply to: my support threads are not showing in my account area #1090273Niall
Participantresolved
Niall
ParticipantHi Nico,
I deleted the first line<span class=”day”><?php echo esc_html( $day[‘formatted_day’] ); ?></span>
and then went into This_Week.php (its in the plugin folder inside the pro version, Pro/Src/Tribe
change this:
$display_date_format = apply_filters( ‘tribe_events_this_week_date_format’, ‘jS’ );to this:
$display_date_format = apply_filters( ‘tribe_events_this_week_date_format’, ‘l, F jS, Y’ );that puts it into the correct format (at least that the format I want, you can change it, just google “date format wordpress”)
the only prob is that I’ve changed my core files so I’ll have to track this when I do updates (like the one I did last night)
I wish I knew how to put this change into my theme, maybe there is a way to put the function into my theme’s functions file…
If anyone knows how to do this please chime in
Niall
Participantsadly I can’t do that, the $display_date_format is created in the
public static function this_week_query( $this_week_query_vars )
I then reference it in the loop-grid.php.
<?php echo esc_html( tribe_events_get_this_week_title( $this_week_template_vars[‘start_date’] ) ); ?>
thanks for your feedback though!!!
-
This reply was modified 10 years, 1 month ago by
Niall.
Niall
ParticipantI had to go into the plugin core to fix this
I changed line 269 of This_week.php to:
$display_date_format = apply_filters( ‘tribe_events_this_week_date_format’, ‘l, F jS, Y’ );and then called it from the template in my theme.
that fixed the problem, but now I can’t update my plugin
any suggestions?
March 16, 2016 at 11:41 am in reply to: my support threads are not showing in my account area #1089861Niall
Participanthere is the link that the top nav is taking me to:
https://theeventscalendar.com/support/forums/users/[email protected]/support/topics/
Niall
Participantplease disregard this question, I’ve used the this-week widget for this view and have pursuaded the client to show the calendar weekly not monthly.
Niall
ParticipantHello, I meant to say broken out by day, (not week), Also is there a way to have intra month navigation as per the screenshot?– I know it works in the month view but will it work in list view?
-
This reply was modified 10 years, 1 month ago by
-
AuthorPosts
