Show only Today’s Events

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

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #57840
    ali7e
    Participant

    Hi Neill,

    This is what the arrays output: Array ( [0] => tribe_events [1] => custom [2] => 5 [3] => [4] => )

    Thanks!
    Ali

    #58161
    Neill
    Member

    Hi Ali,

    I think you’d need to give your $current_date a value, these aren’t being declared elsewhere are they?

    Something like $current_date = date(“Y-m-d”); would probably work.

    Neill

    #58350
    ali7e
    Participant

    Hi Neil,

    Thanks for your response. I added which seems to be the required time format and I am getting an interesting result. If in the Widget settings I set the “Number of events to show” to 1 it shows the right event. If I set it to more than 1, it just repeats the first event and does not show the other events. Is there a way to make it so all of the day’s events (regardless of how many there are) show?

    Thanks again!
    Ali

    #58588
    Neill
    Member

    Hi Ali,

    Without spending too much time on your code, I’d double check you have something set up to increment through the most recent posts? It sounds like your if statement may be receiving the correct number of post to show (i.e. set to 2 it shows 2 posts, set to 5 its shows 5), but there may not be anything in your if statement that retrieves the newest post, and then works back through the next newest event.

    Neill

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