Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantStrange, what is your permalink structure set to? Try setting it to Postname. Does changing the setting in Settings > Reading do anything?
– Jonah
Jonah
ParticipantHi Raiquel,
Unfortunately this is a fairly customized request and I won’t be able to help you with the specifics. What you’re looking for though is in /wp-content/plugins/the-events-calendar/views/table.php like I mentioned before. Basically what you’ll need to do is loop through the events on a given day and get the thumbnails but only display the first one.
Good luck!
– Jonah
Jonah
ParticipantHi Krysia,
Sometimes your theme will override the setting for the plugin. You can take control by placing this in your themes functions.php file and modifying the posts_per_page to however many events you want to show:
//show more events on the events list pages
add_action( 'pre_get_posts', 'set_events_per_page' );
function set_events_per_page( $query ) {
if ( $query->query_vars['eventDisplay'] == 'upcoming' || $query->query_vars['eventDisplay'] == 'past' && $query->query_vars['post_type'] == TribeEvents::POSTTYPE && !is_tax(TribeEvents::TAXONOMY) && empty( $query->query_vars['suppress_filters'] ) ) {
$query->set('posts_per_page', 2);
}
return $query;
}
I hope that helps but let me know if you need anything else.– Jonah
Jonah
ParticipantHi Benjamin,
You can use WP_Query or our own built in query functions tribe_get_events() which we have documented with examples here: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events
I hope that helps but let me know if you need anything else!
– Jonah
Jonah
ParticipantHi Kevin,
There is bunch more in your in your gridview file that’s going to need to be changed and I won’t be able to help you preserve your specific customizations. You have two options:
1. You can just rename this gridview file to gridview.phpOLD so the plugin does not use your customized copy and instead uses the core view file.
2. You can do the work to compare your gridview.php file with the core file in /wp-content/plugins/the-events-calendar/views/gridview.php and merge the new code with your older customized code.
I hope that helps but let me know if you need anything else.
– Jonah
Jonah
ParticipantOoops, sorry for not specifying that. It’s in /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php on line 46.
Let me know if you need anything else.
– Jonah
October 24, 2012 at 7:00 pm in reply to: Customize the mini calendar widget tribe_calendar_mini_grid() #27163Jonah
ParticipantHi Reuben,
Yep, you can place a copy of /wp-content/plugins/the-events-calendar/views/table-mini.php in an ‘events’ folder in your theme and then change anything you want in the file.
Does that help?
Thanks,
JonahJonah
ParticipantHi Jason,
Just go to Account Central > License Keys in the upper right of the Tribe website. There you can unregister and re-register your license.
I hope that helps!
– Jonah
Jonah
ParticipantHi Andrew,
Is this for the Community Events plugin?
– Jonah
October 24, 2012 at 12:56 pm in reply to: Table.php limit display of calendar to specific categories #27148Jonah
ParticipantAwesome! Glad that worked. Let us know if you need anything else.
Regards,
JonahJonah
ParticipantHi Kevin,
Can you send me a copy of your D:\Hosting\3136778\html\wordpress\wp-content\themes\cubscouts\events\gridview.php file? You can email to pro [at] tri [dot] be referencing this thread and attn. to me.
Thanks,
JonahJonah
ParticipantHi Chad,
Ok, this is for the Advanced Events List Widget. All you need to do in your override file is replace this line:
echo tribe_get_start_date( $post->ID, $start );
…with:
echo tribe_get_start_date( $post->ID, false, 'M' );
echo tribe_get_start_date( $post->ID, false, 'd' );
echo tribe_get_start_date( $post->ID, false, 'Y' );
echo tribe_get_start_date( $post->ID, false, 'g:ia' );
…which will separate out all the date/time components. You can easily wrap these with whatever HTML you want too. Does that help?– Jonah
October 24, 2012 at 12:45 pm in reply to: Change the Default Event Template to remove the Sidebar #27145Jonah
ParticipantHi Manuel,
Glad that worked for you. Let us know if there’s anything else we can do for you.
Thanks,
JonahOctober 23, 2012 at 8:03 pm in reply to: Change the Default Event Template to remove the Sidebar #27089Jonah
ParticipantHi Manuel,
The Default Events Template uses /wp-content/plugins/the-events-calendar/views/ecp-page-template.php for the list and grid views and /wp-content/plugins/the-events-calendar/views/ecp-single-template.php for single events. You could also hide it using CSS by targeting the body class of .events-single
I hope that helps but let me know if you need anything else.
– Jonah
Jonah
ParticipantHi Raiquel,
How would this work? Would the thumbnail image be for one of the events on any given day or where would the thumbnail come from? Ultimately you’ll want to modify /wp-content/plugins/the-events-calendar/views/table.php by making a copy and placing in an ‘events’ folder in your theme. You can make any changes you want there.
– Jonah
-
AuthorPosts
