Home › Forums › Calendar Products › Events Calendar PRO › Show only Today’s Events
- This topic has 18 replies, 2 voices, and was last updated 12 years, 8 months ago by
Neill.
-
AuthorPosts
-
July 9, 2013 at 2:50 pm #54144
ali7e
ParticipantHello,
I purchased the PRO version of the plugin. Is there any way to make the Events List widget show only the day’s events along with the associated thumbnails?
Thanks,
AliJuly 10, 2013 at 9:39 am #54295ali7e
ParticipantHello,
I actually figured out the thumbnail portion of the question. Now just need to know how to show only all of the day’s events in the widget.
Thanks!
AliJuly 11, 2013 at 2:58 pm #54632Neill
MemberHi Ali,
Thanks for your question. Just so I can confirm are you looking to only show a particular days events in that list view? For example, today is the 11th of July, so you just want events for the 11th to display today? But tomorrow the 12th will display everything for the 12th?
Neill
July 11, 2013 at 3:08 pm #54637ali7e
ParticipantHi Neill,
Yes, I want the widget to only show the events for the current day. SO on the 11th of July, the widget would only show the events for the 11th and tomorrow display everything for the 12th.
Thanks!
AliJuly 11, 2013 at 3:08 pm #54638Neill
MemberHi again Ali,
I just found this thread that might help you out:
However for this to work in 3.0 you will need to add this code to the solution above, as this solution was originally prepared in the 2.0 lifecycle :
'eventDisplay'=>'custom'If this isn’t what you were looking for, try giving us a few examples or scenarios and we’ll see if we can point you in the right direction.
July 11, 2013 at 3:15 pm #54640ali7e
ParticipantThis reply is private.
July 11, 2013 at 3:29 pm #54642Neill
MemberHi Ali,
Was there an area in particular of that thread, that’s a roadblock to you? Have you modified a plugin like this previously? If not it might be helpful to have a read through some of the info here in the new documents: http://docs.tri.be/ – You may have already seen this, but its new to 3.0.
Alternatively, if its something specifically about the arguments in that previous thread thats causing an issue, let us know and we can try and point you in the right direction.
Neill
July 16, 2013 at 5:44 pm #55602Neill
MemberHi Ali,
Just wanted to touch base with you and see if you need any further help with this particular issue. I’ll close this out on friday if I haven’t heard back, but feel free to open a new thread if you still need assistance.
July 17, 2013 at 9:57 am #55714ali7e
ParticipantHi Neil,
I tried what it said in the post but it is not working: http://pastebin.com/bF2shVFk
The page actually stops loading after the code.
Thanks!
July 18, 2013 at 2:00 pm #55940Neill
MemberHi Ali,
We are experiencing a pretty heavy load on our support at the moment with the upgrade to 3.0 so apologies for slow response times. I’ll have to take a quick look at this with a developer on the team and see if there is anything I can add to this to give you a pointer.
Neill
July 23, 2013 at 9:26 am #56550ali7e
ParticipantHello Neill,
Just following up on this one.
Thanks!
AliJuly 23, 2013 at 11:05 am #56577Neill
MemberHi Ali,
Apologies again for the wait times. We are slowly getting back to normal after the 3.0 release. Thanks again for your patience.
I’ve taken a look through the code you provided in the Pastebin URL along with a developer and noticed a few areas that would need attention. First of all there are a few basic PHP and WP elements that are probably causing the issues with the code. It looks like one or all of these are probably causing the syntax error/page not loading issue. I’d recommend going through the codex for the WP_Query() here: http://codex.wordpress.org/Class_Reference/WP_Query
I’d also bare in mind that some of the suggestions that are made on the forums here can be just a tool to point you in the right direction. Generally customization is out of the scope of our support on these forums, but we do like to offer pointers in the right direction. These pointers are not usually meant as a copy and paste solution as there can be formatting issues. e.g. the apostrophe (used in PHP) if copy and pasted, depending on your editor, can be changed into a similar but code-breaking form. Also some of the time the solutions suggested can be stripped out code, meaning that the theory or method of how you implement it is given, but the customization for a users code still needs some work.
Hopefully the WP Codex article will set you in the right direction for getting the syntax and the use of the WP_Query() down. If there is any specific Events Calendar Plugin details we can offer feel free to open a thread and we’d be happy to answer them, and don’t forget the documentation pages here: http://docs.tri.be/
Neill
July 23, 2013 at 12:22 pm #56611ali7e
ParticipantHi Neill,
I checked the syntax and fixed it. Now everything loads just fine. Here is the revised one: http://pastebin.com/s6BHYNjV
However, those $args that you mentioned do not seem to be returning anything. Are you sure they are compatible with 3.0? Do I need to change them at all?
Thanks for your help.
Best,
AliJuly 26, 2013 at 12:18 pm #57361ali7e
ParticipantHello,
So it finally does show events! haha But it is only showing me a bunch of recurring events in reverse order. Not showing me today’s events:
http://pastebin.com/dBBE0buPAm I not using the right $args?
Thanks a lot,
AliJuly 26, 2013 at 3:33 pm #57393Neill
MemberHi Ali,
I believe all those args are correct. The only one that might need an update is ‘showposts’ – try changing that to ‘post_per_page’.
After you’ve tried that I would then double check all the values passed to that array. Try outputting each one of them so that you know exactly what values are being passed into the function below. Once we know that we may be able to pinpoint whats going on a little better.
Neill
-
AuthorPosts
- The topic ‘Show only Today’s Events’ is closed to new replies.
