Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Michael,
Can you please check to see if you have two versions of the plugin installed? Perhaps a folder leftover from the previous version?
– Jonah
Jonah
ParticipantDavid?
Jonah
ParticipantHi Michael, no I don’t know what is causing this but have created a ticket for one of our developers to take a look. Stay tuned 🙂
– Jonah
Jonah
ParticipantHi Simone,
I’m able to import events from this page just fine so it may be something with your server setup. Can you tell me what type of server you are on and your version of Apache, PHP and MySQL?
Thanks,
JonahJonah
ParticipantHi Ephraim,
I would suggest checking out this tutorial: https://theeventscalendar.com/how-to-completely-customize-widgets/
I hope that helps but let me know if you need anything else.
Jonah
ParticipantHi Michael,
Sorry about the issues with this. The first thing I’d like you to try is to clear your browser cache. If that doesn’t work, please try manually re-installing the PRO plugin by re-downloading and re-copying all the plugin files over. You won’t lose any events or anything by doing this. If that doesn’t work either, please try deactivating all other plugins to see if maybe another plugin could be causing a conflict here.
Let me know how that goes.
Thanks,
JonahJonah
ParticipantHi John,
In order to get a calendar grid or list you would need to build all of that functionality yourself. A lot of the grid code is in /wp-content/plugins/the-events-calendar/views/gridview.php and /wp-content/plugins/the-events-calendar/views/table.php if you want to take a look at that.
To get specific date ranges with WP_Query you need to pass in meta_query args like so:
'post_type' => array(TribeEvents::POSTTYPE),
'posts_per_page' => 10,
'post_status' => 'publish',
'meta_query' => array(
'relation' => 'OR',
array(
'key' => '_EventStartDate',
'value' => array(
date('Y-m-d H:i:s', strtotime('now')),
date('Y-m-d H:i:s', strtotime('+2 weeks'))),
'compare' => 'BETWEEN',
'type' => 'DATETIME'
),
array(
'key' => '_EventEndDate',
'value' => array(
date('Y-m-d H:i:s', strtotime('now')),
date('Y-m-d H:i:s', strtotime('+2 weeks'))),
'compare' => 'BETWEEN',
'type' => 'DATETIME'
)
)
Otherwise you could also use tribe_get_events() – our own query function for events that will let you pass in eventDisplay params like ‘all’, ‘past’, ‘upcoming’ and so forth to automatically affect the query. You can see more here: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_eventsI hope that helps but let me know if you have any more questions.
Jonah
ParticipantHi slwinter,
I’m sorry to hear of your disappointment and can definitely relate. Unfortunately like I said we simply don’t have the resources to be able to help with this issue. It’s a situation where if it’s not something you can figure out, you’re just going to need to hire a developer to help you. If you need some resources for that, please let me know.
– Jonah
Jonah
ParticipantHey Sean, that screenshot I posted is from Google Chrome. Are you running the latest version and is it on Windows or Mac?
– Jonah
Jonah
ParticipantHi Greg,
From first glance it looks like it works well. I also didn’t test all scenarios but we’ll take a closer look and I’m sure this will be helpful in implementing into the plugin. Thank you so much and congrats on getting it to work!
Regards,
JonahJonah
ParticipantHi John,
Where it says ‘featured’, just change featured to the slug of whatever the category name is you want to load events for. You can also change the operator to ‘NOT IN’ if you want to exclude the category and/or pass in an array of categories vs. just one by using: array( ‘featured’, ‘other-cat-slug’ ) instead of a singular category slug. The WP_Query reference contains lots of useful information on what you can do with this function: http://codex.wordpress.org/Class_Reference/WP_Query
I hope that helps but let me know if you have any other questions.
– Jonah
Jonah
ParticipantHi Sean,
I’m seeing it just fine: http://cl.ly/image/2c2F0i2H2c1c – am I missing something?
Jonah
ParticipantHey David,
Ok I think I might have a solution for you. It’s not the most ideal but I think it works. What it does is it checks to see if the events start_date is before today and if so, adds a class of ‘hide-event’ to the container div for the event, allowing you to hide it with CSS. Here’s what you need to do to set this up:
1. Make a copy of /wp-content/plugins/the-events-calendar/views/list.php and place in an ‘events’ folder in your theme.
2. Open it up and paste in the following code right after line 29 (make some space): http://snippi.com/s/6d22rpq
3. Next replace what had been line 30 (you’ll need to figure out what line its on now), which is the containing div for each event, with this code: http://snippi.com/s/mnki4ut
4. Add the following to your theme’s style.css file to hide these events:
.hide-event {
display: none;
}
That should do it. Let me know how that works for you!– Jonah
Jonah
ParticipantSounds good Bob, let us know if there’s anything else I can do for you here.
– Jonah
Jonah
ParticipantHi Jeffrey,
I’m going to move this over to the Community Events forum where someone will be able to help you there.
Regards,
Jonah -
AuthorPosts
