Forum Replies Created
-
AuthorPosts
-
Nico
MemberHi there!
Thanks for getting in touch with us!
Can you please send me a screenshot of the ‘venue name’ you are trying to change? I just inspected the site but couldn’t see any venue names in the Week view. Also please share the URL where I can see this ๐
Best,
NicoNico
MemberHi there @indycourses,
Thanks for getting in touch with us! Also thanks for the detailed description of the issue. But still I’m not quite sure of the fields you crated “for Events Calendar PRO”:
We have a second set of fields for Name, Email and Bio that relate specifically to Events Calendar PRO, and are edited through a Gravity Form. The values of these fields are then used by Events Calendar PRO: they are displayed on the event page, in the email confirmations that are sent out after an event is purchased, the slug for the instructors profile (eg: https://indycourses.com/instructor/roxanne/), and probably other locations Iโm not aware of.
Are these PRO addtional fields? If not which type of fields are these? Are instructors users within the site?
I’m not 100% sure of how I can help!
Please let me know about it,
Best,
NicoNico
MemberHi there Brendan,
Thanks for getting in touch!
I could verify this and I’m mostly sure the difference is related with your timezone setting. Can you please share your system information with me so I can check this?
Also, not sure what you mean by: “Notice the time stamps for each and the dependency.”. Can you please clarify a bit on it?
Best,
NicoNico
MemberHey Jo,
Just an update, talking to Barry one of our devs he suggested the following code:
function mixed_tag_archive_ordering( WP_Query $query ) {
if ( ! $query->is_tag() || ! $query->is_main_query() || ! @$query->tribe_is_multi_posttype ) return;
add_filter( 'posts_orderby', 'mixed_tag_archive_order_sql' );
}function mixed_tag_archive_order_sql( $orderby_sql ) {
remove_filter( 'posts_orderby', 'mixed_tag_archive_order_sql' );
return ' post_type DESC, ' . $orderby_sql;
}add_action( 'tribe_events_pre_get_posts', 'mixed_tag_archive_ordering' );
This will show first events by start date and then posts, but with a big caveat doesn’t play well with PRO, or more specifically the show only the first instance of each recurring event setting. So if you decide to use this code be sure to test extensively before implementing it in the live site.
Best,
NicoNico
MemberThanks for confirming Mirja! Glad to hear this is resolved ๐
Iโll go ahead and close out this thread, but if you need help with anything else please donโt hesitate to create a new one and we will be happy to assist you.
Best,
NicoNico
MemberThis reply is private.
Nico
MemberHi Jo,
Thanks for the patience while I worked on this ๐
Basically after various tries, I couldn’t find a way of ordering both posts and events by event start date. As posts don’t have that meta data (don’t have start date value), when I try to use this value they get excluded. From what I could search there’s no workaround for this ๐
What you can do is have tags exclusively for events and others just for posts. With this setup, tags for events will display event by start date (starting with the higher/newer start date and descending to the lower/oldest) and tags for posts will display as it does by default (by publish date).
I’m sorry but there’s seem to be no simple workaround for this! There might be more complex solutions like doing various queries (one for events and one for posts basically) and combining the results but exploring that would be out of the scope of the support forums.
Please let me know if using exclusive tags might work for you,
Best,
NicoSeptember 28, 2016 at 6:31 am in reply to: How to include Mobile numbers to Attendees Report and Export? #1169758Nico
MemberThanks for the heads-up Tac!
I just re-tested the code in my local test site and it’s working as expected (the phone is added to the CSV file as well). Anyway I did a small tweak so please give this updated version a try:
/* Tribe, inject phone column header */
function tribe_inject_phone_column ( $columns ) {// bail if no tickets column present
if ( !array_key_exists('ticket', $columns) ) return $columns;return array_merge( array_slice ( $columns , 0, 5 ), array('phone' => 'Purchaser Phone' ), array_slice ( $columns , 5 ) );
}
add_filter( 'manage__columns', 'tribe_inject_phone_column' );
add_filter( 'manage_tribe_events_page_tickets-attendees_columns', 'tribe_inject_phone_column' );/* Tribe, inject phone column value */
function tribe_inject_phone ( $value, $item, $column ) {if ('phone' == $column && 'woo' == $item['provider_slug'] ) {
if ( !class_exists( 'WC_Order' ) ) return '';
$order = new WC_Order( $item['order_id'] );
$billing = $order->get_address('billing');$value = $billing['phone'];
}
return $value;
}
add_filter( 'tribe_events_tickets_attendees_table_column', 'tribe_inject_phone', 10, 3);/* Tribe, add the phone to CSV export as well */
function tribe_csv_export_add_phone ( $post_id ) {add_filter( 'manage__columns', 'tribe_inject_phone_column', 20 );
add_filter( 'manage_tribe_events_page_tickets-attendees_columns', 'tribe_inject_phone_column', 20 );add_filter( 'tribe_events_tickets_attendees_table_column', 'tribe_inject_phone', 10, 3);
}
add_action( 'tribe_events_tickets_generate_filtered_attendees_list', 'tribe_csv_export_add_phone' );
Hope this time it works!
Best,
NicoNico
MemberYou are welcome Steven ๐
Iโll go ahead and close out this thread, but if you need help with anything else please donโt hesitate to create a new one and we will be happy to assist you.
Best,
NicoNico
MemberHey Nico,
Thanks for getting in touch with us ๐
Is there an opportunity to filter out the recurring events with the filter bar and just display the normal ones and the other way around?
No, there’s not option to do this in the Filter Bar. But there are two options in WP-Admin > Events > Settings > General > Recurring event instances / Front-end recurring event instances toggle, please check them out and let me know if this is what you are looking for.
Best,
NicoNico
MemberThis reply is private.
September 27, 2016 at 2:25 pm in reply to: Adding custom field to email.php on Event Tickets #1169513Nico
MemberThis reply is private.
September 27, 2016 at 2:08 pm in reply to: Attendee list disappears when tabbing away from the updated Qty field #1169499Nico
MemberThanks for clarifying Marina! I thought you were referring to the attendees list (who’s attending to the event) instead of the attendee meta.
I can see this in your site, but I cannot still reproduce this in my local test site (tabbing from the quantity input takes me to the first attendee field below).
Have you tried following the steps described in our Testing for conflicts guide? If not please do so, this will indicate if itโs a theme related issue or not.
Can you please try what I suggested above? Also, are you using a custom theme built for your site or is it a stock theme?
Thanks,
NicoNico
MemberHey Steven,
Thanks for following up and sorry for the delay in my reply!
We want the calendar to still default to displaying the current month, day, etc. But we want past *events* to show up, no matter what view you are looking at.
Let me clarify a bit on this, the snippet I sent will just work on list view (the code to make it work on other views is commented out) but please note that Month, Week and Day view already show past events in the corresponding time period, so there’s nothing we can change in those. The snippet might work for list, photo or map views (which I enabled in the amended code below):
/*
* Set the default date for views like List and Month
* Modify the $date variable below to set your date
*/
function tribe_set_default_date( $wp_query ) {
// Only run on main event queries
if ( ! tribe_is_event_query() || ! $wp_query->is_main_query() || $wp_query->get( 'eventDate' ) != '') return;
// Set this to the date you want shown, in YYYY-MM-DD format
$date = '2000-01-01';
// Select which TEC views you want this to apply to by uncommenting them
if (
tribe_is_list_view()
|| tribe_is_map()
|| tribe_is_photo()
// || tribe_is_month()
// || tribe_is_week()
// || tribe_is_day()
) {
$wp_query->set( 'eventDate', $date );
}
}
if ( function_exists('tribe_is_event_query') ) {
add_action( 'parse_query', 'tribe_set_default_date', 100);
}
If yo do not include the other snippet below this the date in the picker won’t be changed.
Important: please note the code sent is intended to be a starting point for the custom functionality you are trying to achieve, basically we do not support this feature and it’s probable you’ll need to tweak the code to fit your project needs. Sorry if I didn’t made this clear in the first place, but we cannot support features that aren’t actually part of the plugin!
Please let me know if the code is working for the enabled views now (list, photo and map), and also your thoughts about this,
Best,
NicoSeptember 27, 2016 at 1:39 pm in reply to: Issues with how events are displayed in Lists vs. Calendar View #1169478Nico
MemberThis reply is private.
-
AuthorPosts
