Home › Forums › Calendar Products › Events Calendar PRO › Show more than 1 featured event (next event widget)
- This topic has 10 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
October 15, 2012 at 2:56 pm #26650
Tony
ParticipantBefore the last release, I editing a php core file to enable more than the default 1 event to be shown in the next event widget. Since updating, this change was lost. Could you tell me where this is now located? It was, as I recall, a simple change from “1” to “%number%” somewhere.
October 16, 2012 at 2:21 pm #26720Tony
ParticipantIt hsa been more than 24 hours since I posted this. Has it also ‘fallen through the gaps’ like my last few?
October 16, 2012 at 4:34 pm #26725Barry
MemberHi Tony, sorry about the wait. Perhaps you are thinking of the code found on line ~34 of this file:
events-calendar-pro/lib/widget-featured.class.php
You should see a little piece of text in there looking like “numResults=1” – does that sound like the code you are looking for?
As always, we do advise against this sort of modification for the very reason that such a change can be overwritten upon updating.
October 16, 2012 at 5:12 pm #26730Barry
MemberOne other thing I’d highlight (could also be useful for anyone else out there who might be interested in this), I think the approach I would advocate here is using the Events List Advanced Widget, which allows control over the number of events to be shown (and customizing it as necessary via template overrides).
If for any reason you absolutely need to make the Next Event widget display multiple events however, it’s possible to accomplish this without hacking the core:
Cheers 🙂
October 17, 2012 at 10:44 am #26762Tony
ParticipantThanks Barry, this works great. However I am getting the error:
Warning: extract() expects parameter 1 to be array, null given in mysite.com/public_html/wp-content/plugins/events-calendar-pro/lib/widget-featured.class.php on line 23
October 17, 2012 at 11:02 am #26765Barry
MemberYep good catch, my bad. Try this: http://pastebin.com/kZeZEeS0
October 17, 2012 at 11:11 am #26766Tony
ParticipantThanks. The error has now gone, but I notice that the Events List Advanced Widget only shows 5 events now and my minicalendar tooltips only works for the first 2 events.
October 17, 2012 at 12:21 pm #26770Barry
MemberNot really sure why you are experiencing problems with your minicalendar tooltips, but you’re bang on about the other widgets. Third time luck 😉 http://pastebin.com/t6GeB5uE
October 17, 2012 at 2:07 pm #26773Tony
ParticipantBarry – That works perfect, thanks very much! Cheers
October 17, 2012 at 5:35 pm #26777Leah
MemberGlad to hear that was a success Tony. I’m going to close out the thread, but if you have any other questions feel free to start another.
~Leah
July 7, 2015 at 6:26 am #978007Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Show more than 1 featured event (next event widget)’ is closed to new replies.
