Forum Replies Created
-
AuthorPosts
-
February 8, 2012 at 9:02 am in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #14855
Jonah
ParticipantHi Ken,
I’m not sure how to check against select values with the function. I’m going to get another dev to chime in here…
February 7, 2012 at 2:07 pm in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #14830Jonah
ParticipantHey Ken, yeah you should be able to use what you’re using with a slight modification, try this:
if (tribe_get_custom_field('Duration') != ''):echo tribe_get_custom_field('Duration');
endif;
Jonah
ParticipantHi Suzanne, you will need to modify single.php but it’s a pretty easy change. First make sure you are working with a duplicate copy in an ‘events’ folder in your theme. Then just look at line 21 where: echo tribe_get_start_date( null, false, ‘Y-m-d-h:i:s’ ); is called. That third argument ‘Y-m-d-h:i:s’ is where the date/time format is set. If you don’t want the time just remove the -h:i:s so is reads like echo tribe_get_start_date( null, false, ‘Y-m-d’ ); instead. Do the same thing for the end date if you want and you should be set.
Let me know if you need any other help with this.
February 7, 2012 at 1:58 pm in reply to: List view does not work when calendar widget is used. #14827Jonah
ParticipantHi Kris, very strange. What do you have set as your ‘Events Template’ in the events calendar settings?
Jonah
ParticipantHey Sean,
On the .next class conflict, you’re either going to have to modify the slider to use a different class for the prev/next links or modify the events calendar. To modify the events calendar you just need to modify two files:
/wp-content/plugins/the-events-calendar/resources/events.css
/wp-content/plugins/the-events-calendar/views/single.phpMake duplicate copies of both these files and place them in an ‘events’ folder in your theme.
In events.css on line 426 change ‘.previous’ to ‘.previous-event’ and on line 431 change ‘.next’ to ‘.next-event’
Then in single.php on line 107 change the ‘previous’ class to ‘previous-event’ and on line 109 change the ‘next’ class to ‘next-event’.
That should remove that conflict.
Do you have an example of a page where the lightbox script is not working?
For the blank screen issue it might be a server memory issue. Try upping the server memory to 128M.
I hope that helps,
JonahJonah
ParticipantHi Ken,
Unfortunately the only way to do this is to hack the core part of the plugin and there’s no way to preserve your changes upon updating so it’s not a very good solution. And, the hack is fairly complex as it requires changing how the date is handled in multiple places so I won’t be able to help you with this.
You may want to add this as a feature request though: https://theeventscalendar.com/support/forums/topic/events-calendar-pro-feature-requests/
February 7, 2012 at 1:29 pm in reply to: Change Featured Event Widget Date to Feb, instead of February… #14822Jonah
ParticipantHey Rich, you can modify the date format in the tribe_get_start_date function by passing your date format as the third argument like so:
echo tribe_get_start_date( $post->ID, isset($start) ? $start : null, 'M' );
There are some more examples in our documentation: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-date-functions/#functiontribe_get_start_date
I hope that helps but let me know if you have any other questions on this.
Thanks,
JonahFebruary 7, 2012 at 12:15 pm in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #14800Jonah
ParticipantGlad that worked Ken, I’ll make sure to update the documentation so it’s there.
February 7, 2012 at 12:13 pm in reply to: Calendar not displaying correctly with Genesis and Child Theme after update. #14799Jonah
ParticipantYou’re welcome Rowan, glad to be able to help!
February 6, 2012 at 4:59 pm in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #14755Jonah
ParticipantHey Ken, we’ve got 3 functions available for event custom fields:
– tribe_custom_field(‘Label Name’) – Echo Event Custom Field by Label
– tribe_get_custom_field(‘Label Name’) – Get Event Custom Field by Label
– tribe_get_custom_fields() – loops through all custom fields and builds an array of them
– tribe_the_custom_fields() – loops through all custom fields and builds a definition listYou’ll probably want to use tribe_custom_field(‘Label Name’).
I hope that helps,
JonahFebruary 6, 2012 at 1:47 pm in reply to: Calendar not displaying correctly with Genesis and Child Theme after update. #14748Jonah
Participant@rowan – with future updates there may be changes to the core templates or stylesheets so you will always want to take a look at the release notes to see what has changed and compare as needed for any files you’ve overridden. I wouldn’t anticipate there being huge changes like there were going from 1.6.5 to 2.0 though for some time.
February 6, 2012 at 10:54 am in reply to: Calendar not displaying correctly with Genesis and Child Theme after update. #14739Jonah
ParticipantNo problem. Yeah, same thing with the events.css file, if you had overridden any of the templates in the previous version (i.e. list.php, gridview.php, etc..) in the ‘events’ folder in your theme, then you need to get the new copies of these template files and either compare/merge or just copy in the new ones. The template files are located in /wp-content/plugins/the-events-calendar/views
Try that.
– Jonah
February 6, 2012 at 10:04 am in reply to: Calendar not displaying correctly with Genesis and Child Theme after update. #14735Jonah
ParticipantHey Rowan, it looks like you’re using the older plugin stylesheet. In the new version, id’s and class names changed and if you had a stylesheet override setup with the old version, you’ll want to get a fresh copy of the stylesheet from the new version in /wp-content/plugins/the-events-calendar/resources/events.css – you can either do a comparison between the two or just do a straight replace of the events.css file in your themes ‘events’ folder.
Jonah
ParticipantHi Tara,
What you’ll need to do is modify your themes search results template. Typically this is the search.php file. You’ll need to conditionally check to see if the post in the results is an event which you can do with our template tag tribe_is_event() – and then display the event date with the tribe_get_start_date function – so for example:
if(tribe_is_event()) {
echo tribe_get_start_date( $post->ID, false, 'D. M j, Y' );
}
That should get you pointed in the right direction.
Jonah
ParticipantHey Josh, so if you’re using this full-width template you’ll need to find out where the file for that is in your theme and find the spot where the title is output and utilize the code I posted above to customize it in that template.
-
AuthorPosts
