Forum Replies Created
-
AuthorPosts
-
Nico
MemberWooot! Really glad to hear Sanne π
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.
Hope you have a great week,
NicoNico
MemberGlad to see you could get this done Hans-Gerd π
Thanks for sharing the complete code you used!
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.
Hope you have a great week,
NicoNico
MemberHey Jesse and Karly,
Thanks so much for the patience and sorry for the delay on my reply! I think I could correct the snippet and as far as I could test it works π
I changed a bit how it works, just delete the previous code I sent and try this one instead:
/* helper function to see if there's at least one valid organizer */
function tribe_valid_organizers ( ) {// check for at least 1 valid organizer
$valid_organizer = false;// bail if post not set
if ( !isset($_POST) || !isset($_POST['organizer']) ) return $valid_organizer;$cant_organizers = count ( $_POST['organizer']['OrganizerID'] );
for ( $i = 0; $i < $cant_organizers; $i++ ) {
// saved organizer
if ( !empty( $_POST['organizer']['OrganizerID'][$i] ) ) {
$valid_organizer = true;
break;
}// organizer has name and email
if ( !empty( $_POST['organizer']['Organizer'][$i] ) && !empty( $_POST['organizer']['Email'][$i] ) ) {
$valid_organizer = true;
break;
}}
return $valid_organizer;
}/* define organizer as required */
add_filter( 'tribe_events_community_required_fields', 'my_community_required_fields', 10, 1 );function my_community_required_fields( $fields ) {
$fields = array(
'post_title',
'post_content'
);/* make organizer required */
if ( !tribe_valid_organizers() ) {
$fields[] = 'organizer';
}return $fields;
}
Be sure to change the fields array to whatever fields are required in your site!
Please give it a go and let me know about it,
Have a great weekend,
NicoNico
MemberThanks for following up Hans-Gerd!
So you want to pull the current category from the URL? And if there’s no category just return an empty string?
Please let me know so I can tweak the code π
July 22, 2016 at 2:28 pm in reply to: Calendar not displaying when page template has sidebar #1143213Nico
MemberGlad to hear you could work the issue out Hovig π
Regarding your follow-up question, I’m not aware of any compatibility with Category Colors plugin. Also I’m not familiarized with the plugin code so not sure how it could be affected. Anyway I see it working correctly on your site now, if the issue persists please post in Category Colores support forum, Andy (author) is a great guy and seems to be pretty responsive in the forums π
Best,
NicoJuly 22, 2016 at 2:20 pm in reply to: Recurring events don't show in list and calendar view #1143205Nico
MemberHey Chris,
Really sorry to hear you are leaving, but hope you can find the right tool for your project π
Best of luck with the site,
NicoNico
MemberHowdy Robert,
Thanks for reaching out and sorry to hear about this issue π
Just go ahead and downgrade the Event Brite tickets add-on to version 4.1.3. All plugins need to be in the same major version number, that’s why updating Event Brite required to update The Events Calendar and Events Calendar PRO. Follow this guide to do it: Downgrading a plugin to a past version.
Please let me know if you are able to make it work again,
Have a great weekend,
NicoNico
MemberHi there Christine,
Thanks for reaching out! I see you marked the thread as resolved and I also see the map working as expected in your site, so I guess you could work this issue out, right?
If not please check out this guide: Setting Up Your Google Maps API Key.
Please let me know about it,
Have a great weekend,
NicoNico
MemberHi there Thomas,
Thanks for getting in touch and for your interest in our products π
create an event, and then list that event using one view on a page
Not sure if I get you right, but the events calendar comes packed with different view in which your event will be displayed (look at hour demo site:http://wpshindig.com/events/): month view, list view, etc.
…but also use a calendar view in a sidebar
For the sidebar you can make use of our widgets, please note that only one widget is available with The Events Calendar and the extra ones are enabled when using Events Calendar PRO.
Please let me know if the above answers your questions or you still need help,
Have a great weekend,
NicoJuly 22, 2016 at 1:28 pm in reply to: Calendar not displaying when page template has sidebar #1143170Nico
MemberHi there Hovig,
Thanks for reaching out to us! I’ll help you here π
I’ve seen this is the past for some other themes as well. The issue seems to be with how the theme is displaying archive pages (events view are archive pages), so please check on the theme settings if there’s an option to show full content for archive views instead of excerpts. I’m not much familiarized with X so not sure where that option is located, bue maybe their support team can help you configuring this?
Please let me know if you can’t make it work, if not we can explore other options!
Have a great weekend,
NicoJuly 22, 2016 at 1:09 pm in reply to: "You have 1 Ticket for this Page" Showing for pages I don't have tickets for. #1143155Nico
MemberHi there Jason,
Thanks for reaching out and sorry to hear about this issue! I’ll help you out…
I just tried to reproduce this real quick in my local install but was unable to do so. I used WooCommerce tickets attached to events, and each event is showing it’s own tickets after purchase.
Can you please describe the steps to reproduce this issue? Are you using RSVP or WooCommerce tickets? Are those attached to events or other post type?
Please let me know about this,
Have a great weekend,
NicoNico
MemberHey Kate,
Thanks for getting in touch! I’ll help you here π
For now the method you describe is the best option to do this. We are working on adding tickets support for recurring events, but won’t happen in the near future. Hopefully we will have that included for version 4.4 (coming out in November approx), that’s the current plan!
Please let me know if there’s anything else I can do for you,
Best,
NicoJuly 22, 2016 at 12:40 pm in reply to: How can I introduce information throught The Event Calendar's details section ? #1143139Nico
MemberHowdy Marie-Charlotte,
Welcome to our support forums and thanks for reaching out to us!
Events Calendar PRO comes packed with additional fields, which can be very useful for this. If you are not planning to purchase PRO just for this then we can explore other ways of doing this with WordPress built-in custom fields or with Advanced Custom Fields plugin as well and a template override. The later options will require some coding on your side, I will guide you anyway!
Please let me know about it,
Best,
NicoNico
MemberHey Hans,
Thanks for getting in touch! I crafted a little helper function to do this:
function tribe_count_by_cat ( $event_category_slug ) {if ( ! class_exists('Tribe__Events__Main') ) return false;
$tax_query = array( 'taxonomy' => Tribe__Events__Main::TAXONOMY,
'field' => 'slug',
'terms' => $event_category_slug );$args = array( 'post_type' => Tribe__Events__Main::POSTTYPE, 'post_status' => 'publish', 'tax_query' => array( $tax_query ), 'posts_per_page' => -1);
$query = new WP_Query( $args );
return $query->found_posts;
}
Add this code to your theme (or child theme) functions.php file and just call the function in your template like this:
// get events count for Sports event category
echo tribe_count_by_cat('sports');
Please let me know if this is what you were looking for,
Best,
NicoNico
MemberThis reply is private.
-
AuthorPosts
