Forum Replies Created
-
AuthorPosts
-
Brian
MemberHi,
Thanks for the interest in our plugins.
We do not have an API to import information into our plugin.
It maybe possible with the WordPress Rest API, but we are not supporting that until it becomes apart the core of WordPress.
We have a csv importer to get events into the Events Calendar and we are working on an iCal importer, but I do not have a timeline when it will be released.
Let me know if you have any follow up questions.
Thanks
Brian
MemberHi,
Thanks for using our plugins.
Have you tried what we do for the day view and use these arguments:
'eventDate' => $current_date,
'eventDisplay' => 'day'You would want to remove these then:
'eventDisplay' => 'custom',
'start_date' => $current_date,
'end_date' => $datetime->format('Y-m-d'),Also, the format for date and time in a query needs to be in ‘Y-m-d H:i:s’ So if that above does not work maybe you can go back to your original query and add in time.
Let me know how that works out.
Thanks
June 7, 2015 at 12:44 pm in reply to: How would I go about displaying the start & end date in the tooltip inline? #967698Brian
MemberHi,
I can help you out on this.
So you are trying to get the event start times to show on one line instead of two, correct?
I tried this css and got it to work for me:
#tribe-events-content .tribe-events-event-body .duration .updated {
display: inline;
}Add that css to your theme’s stylesheet or through a plugin such as Simple Custom CSS.
Let me know if that helps.
Thanks
Brian
MemberHi Michael,
The related events look for events with the same tags and/or categories.
We use the wp_get_post_tags and wp_get_object_terms to get tags and categories of the current events
Then we use those and the orderby random argument to find related events.
Here is the entire function in 3.10:
/**
* Template tag to get related posts for the current post.
*
* @param int $count number of related posts to return.
* @param int|obj $post the post to get related posts to, defaults to current global $post
*
* @return array the related posts.
*/
function tribe_get_related_posts( $count = 3, $post = false ) {
$post_id = Tribe__Events__Main::postIdHelper( $post );
$tags = wp_get_post_tags( $post_id, array( 'fields' => 'ids' ) );
$categories = wp_get_object_terms( $post_id, Tribe__Events__Main::TAXONOMY, array( 'fields' => 'ids' ) );
if ( ! $tags && ! $categories ) {
return;
}
$args = array(
'posts_per_page' => $count,
'post__not_in' => array( $post_id ),
'eventDisplay' => 'list',
'tax_query' => array('relation' => 'OR'),
'orderby' => 'rand',
);
if ( $tags ) {
$args['tax_query'][] = array( 'taxonomy' => 'post_tag', 'field' => 'id', 'terms' => $tags );
}
if ( $categories ) {
$args['tax_query'][] = array(
'taxonomy' => Tribe__Events__Main::TAXONOMY,
'field' => 'id',
'terms' => $categories
);
}$args = apply_filters( 'tribe_related_posts_args', $args );
if ( $args ) {
$posts = Tribe__Events__Query::getEvents( $args );
} else {
$posts = array();
}return apply_filters( 'tribe_get_related_posts', $posts ) ;
}Let me know if you have any follow up questions.
Thanks
Brian
MemberHi,
Sorry for the issues you are having.
I can help troubleshoot this with you.
I took a look at your site and see two events on the 29th.
The Roll 2 Event shows first, which is correct as it has the 8:55am start time while the IEEE has a 9am start time. It should on the home page and the Event List View like this.
Are you saying if you have an all day event, that is that when the events are out of order?
Are you able to keep an example on your site of this and I can take a look?
Let me know.
Thanks
Brian
MemberI am glad to see you were able to figure it out.
I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.
Thanks!
Brian
MemberHi,
Sorry for the issues you are having.
We have a ticket in for our next release after 3.10 to address this.
For now does this filter help out:
Can you add that coding to your theme’s function.php and let me know if it works for you.
Thanks
Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
June 7, 2015 at 11:10 am in reply to: [tribe_mini_calendar] How to let it display full calendar view as it is #967682Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
June 7, 2015 at 11:10 am in reply to: PHP Code to include mini calendar in custom theme side bar? #967678Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
-
AuthorPosts
