Show only Today’s Events

Home Forums Calendar Products Events Calendar PRO Show only Today’s Events

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #54144
    ali7e
    Participant

    Hello,
    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,
    Ali

    #54295
    ali7e
    Participant

    Hello,

    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!
    Ali

    #54632
    Neill
    Member

    Hi 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

    #54637
    ali7e
    Participant

    Hi 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!
    Ali

    #54638
    Neill
    Member

    Hi again Ali,

    I just found this thread that might help you out:

    Show only today's events

    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.

    #54640
    ali7e
    Participant

    This reply is private.

    #54642
    Neill
    Member

    Hi 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

    #55602
    Neill
    Member

    Hi 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.

    #55714
    ali7e
    Participant

    Hi 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!

    #55940
    Neill
    Member

    Hi 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

    #56550
    ali7e
    Participant

    Hello Neill,

    Just following up on this one.

    Thanks!
    Ali

    #56577
    Neill
    Member

    Hi 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

    #56611
    ali7e
    Participant

    Hi 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,
    Ali

    #57361
    ali7e
    Participant

    Hello,

    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/dBBE0buP

    Am I not using the right $args?

    Thanks a lot,
    Ali

    #57393
    Neill
    Member

    Hi 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

Viewing 15 posts - 1 through 15 (of 19 total)
  • The topic ‘Show only Today’s Events’ is closed to new replies.