Home › Forums › Calendar Products › Events Calendar PRO › Problem after upgrading the plugin
- This topic has 33 replies, 2 voices, and was last updated 10 years, 3 months ago by
Brook.
-
AuthorPosts
-
December 16, 2015 at 3:58 am #1042041
2ndwing
ParticipantIssue with the widget. As I explained before, I have now set the upcoming events widget as Events page.
In the Events settings, I had to modify the Events URL slug into “events1” in order to not have any conflict with the Events page I have created.
The issue is that when clicking on “View more”, I get to the /events1 url, which shows me the latest posts (original problem) and not the next events.
Any idea how this can be fixed?
Is there also any way to set more than 10 events on the “Upcoming events” widget? Like 20 or 25?
Thanks!December 16, 2015 at 5:35 pm #1042587Brook
ParticipantHowdy again,
That is an inventive way to work around this for not.
There are a lot of hard ways to try and up the # of posts that widget shows. The easiest would probably be to directly edit your database. Buried within the WP_Options table will be a row with option_name ‘widget_tribe-mini-calendar’. Inside of this you will see a serialized array. You will have to unserialize this array, adjust the ‘count’ key to 20 or 25, then reserialize it and save it. This will change the amount of events seen. Sadly, even this option will not be very easy.
To hide the view more link should be much easier. Just add this CSS:
p.tribe-events-widget-link{display:none;}- Brook
December 17, 2015 at 4:49 am #10426812ndwing
ParticipantHi Brook,
Thanks again for this answer. Is there a way I can add the month, or even better, replace the day by the month name on the “Upcoming Events” list grey/white rectangular date tickets?
Kind regards,
MichelDecember 18, 2015 at 1:35 am #1043309Brook
ParticipantYou’re welcome!
That’s absolutely possible. You will need to create a theme override for the widget, specifically this file: /wp-content/plugins/events-calendar-pro/src/views/pro/widgets/modules/single-event.php On line 26 you will see the following:
date_i18n( 'D', $postDate )Replace it with:
date_i18n( 'M', $postDate )And that will show the month name instead of the dayname.
- Brook
December 18, 2015 at 1:36 am #1043310Brook
ParticipantI forgot to include a link to our Themer’s Guide. This is a step-by-step walkthrough on creating the “override” I mentioned above. 🙂
- Brook
December 22, 2015 at 5:20 am #10451172ndwing
ParticipantBrook, thank you so much for all your support.
I need to find a good and well supported template now, which will work fine with the event calendar!
Best,
MichelDecember 23, 2015 at 12:30 am #10456892ndwing
ParticipantBrook,
Concerning the number of events to show in the calendar widget, I have modified the count as suggested, but I still don’t have an option to choose 25 events. Maybe I’ve mistaken in the value (I:25) to modify?a:2:{i:2;a:4:{s:5:”title”;s:15:”Events Calendar”;s:5:”count”;i:25;s:7:”operand”;s:2:”OR”;s:7:”filters”;s:0:””;}s:12:”_multiwidget”;i:1;}
Thanks,
MichelDecember 23, 2015 at 1:47 am #1045696Brook
ParticipantHowdy Michel,
You modified the right thing. This will not add an option to increase the count, but it should directly increase the count of events you see. If you view the widget, are more events showing? You might need to clear your WordPress cache if you are not seeing the change.
You are very welcome Michel. It’s been my pleasure. I wish It was possible to debug your theme, then I could have been a lot more help.
– Brook
December 23, 2015 at 2:08 am #10456992ndwing
ParticipantBrook, I have erased all the cache, it didn’t help. I still can’t see more than 10 events. See here:http://www.noasmusic.com/events/
Also, i’d like to see 25 only on the widget which I have inserted onto the events page and not on the one which is on the sidebar. On this last one I’d like to keep 5.
Is that feasible?
Thanks!
Michel
December 30, 2015 at 12:41 am #10479742ndwing
ParticipantBrook,
Any suggestion for the last question, to have more than 10 events displayed?
Btw, Happy New Year!
Thanks!
MichelJanuary 5, 2016 at 10:19 am #1050643Brook
ParticipantHowdy Michel,
Thanks for bearing with us over the holidays. Pardon the belated response, we were out for a couple of weeks.
I just realized I gave you are using two widgets on that page. You have the minicalendar widget on top, which I gave you instructions for modify. Then below where the primary list is you are using the Advanced list widget. That’s why your changes aren’t showing!
You want to do the same steps to modify the adv list widget, only the option_name in the wp_options table is “widget_tribe-events-adv-list-widget” instead of “widget_tribe-mini-calendar”. Inside of the adv list key you will again see a serialized array. Adjust the ‘count’ key to 20 or 25 as you already have, and save the options. Then you should see your change. 🙂
Cheers!
– Brook
January 6, 2016 at 3:11 am #10509282ndwing
ParticipantHi Brook,
Thanks for the answer.
I found the following but not sure which count parameter I should update? I tried to modify Events”;s:5:”limit”;s:2:”10″ (10 into 25) but it didn’t help. Can you advise?
Best,
Ma:7:{i:1;a:0:{}i:2;a:14:{s:5:”title”;s:15:”Upcoming Events”;s:5:”limit”;s:1:”5″;s:18:”no_upcoming_events”;N;s:5:”venue”;N;s:7:”country”;s:1:”1″;s:7:”address”;N;s:4:”city”;s:1:”1″;s:6:”region”;s:1:”1″;s:3:”zip”;N;s:5:”phone”;N;s:4:”cost”;N;s:9:”organizer”;N;s:7:”operand”;s:2:”OR”;s:7:”filters”;s:0:””;}i:3;a:14:{s:5:”title”;s:15:”Upcoming Events”;s:5:”limit”;s:1:”5″;s:18:”no_upcoming_events”;N;s:5:”venue”;N;s:7:”country”;s:1:”1″;s:7:”address”;N;s:4:”city”;s:1:”1″;s:6:”region”;s:1:”1″;s:3:”zip”;N;s:5:”phone”;N;s:4:”cost”;N;s:9:”organizer”;N;s:7:”operand”;s:2:”OR”;s:7:”filters”;s:0:””;}i:4;a:14:{s:5:”title”;s:15:”Upcoming Events”;s:5:”limit”;s:1:”5″;s:18:”no_upcoming_events”;N;s:5:”venue”;N;s:7:”country”;s:1:”1″;s:7:”address”;N;s:4:”city”;s:1:”1″;s:6:”region”;s:1:”1″;s:3:”zip”;N;s:5:”phone”;N;s:4:”cost”;N;s:9:”organizer”;N;s:7:”operand”;s:2:”OR”;s:7:”filters”;s:0:””;}i:5;a:14:{s:5:”title”;s:15:”Upcoming Events”;s:5:”limit”;s:1:”5″;s:18:”no_upcoming_events”;N;s:5:”venue”;N;s:7:”country”;s:1:”1″;s:7:”address”;N;s:4:”city”;s:1:”1″;s:6:”region”;s:1:”1″;s:3:”zip”;N;s:5:”phone”;N;s:4:”cost”;N;s:9:”organizer”;N;s:7:”operand”;s:2:”OR”;s:7:”filters”;s:0:””;}i:6;a:14:{s:5:”title”;s:15:”Upcoming Events”;s:5:”limit”;s:2:”10″;s:18:”no_upcoming_events”;N;s:5:”venue”;N;s:7:”country”;s:1:”1″;s:7:”address”;N;s:4:”city”;s:1:”1″;s:6:”region”;s:1:”1″;s:3:”zip”;N;s:5:”phone”;N;s:4:”cost”;N;s:9:”organizer”;N;s:7:”operand”;s:2:”OR”;s:7:”filters”;s:0:””;}s:12:”_multiwidget”;i:1;}
January 6, 2016 at 10:53 pm #1051612Brook
ParticipantUnfortunately I don’t know. The reason there are multiple is because that widget is on your site multiple times. You might need to try changing them one at a time until you find the magic one. There is no identifying info I can decipher from that to peg yours.
- Brook
January 6, 2016 at 11:05 pm #10516182ndwing
ParticipantOK for that but can you please tell me exactly what should be modified in order to have an option to show 25 events in the widget? It’s just not clear.
Thanks,
MichelJanuary 6, 2016 at 11:12 pm #1051622Brook
ParticipantOh I see what you’re wondering. I believe it will be the “limit” key. Which might be a good way of helping find it. Set the one you want to change to only show 3 events in WP admin. Then revisit that array in the table, and that one will show
s:5:”limit”;s:1:”2″;
Change it I believe to:
s:5:”limit”;s:2:”25″;
If that doesn’t work though, then try unserializing it, making the change, and reserializing it. This tool might help.
Let me know how it goes.
- Brook
-
AuthorPosts
- The topic ‘Problem after upgrading the plugin’ is closed to new replies.
