Kevin

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: tribe_get_events template tag #10314
    Kevin
    Member

    Hi slny311,

    in your tribe_get_events query you are trying to concatenate a date with a category which won’t work.
    get_posts does not have a ‘date’ parameter so your not going to be able to use that.

    Just of the top of my head I would get today’s date, and then run a conditional to see if the date of the post is equal to today’s date and if so, then display the post.

    something like if (the_date() == $today) {
    do this….
    }

    you’ll have to google around to see how to write this correctly.

    Hope that helps!

    in reply to: tribe_get_events template tag #10312
    Kevin
    Member

    Hi slny311

    I found out that tribe_get_posts() is a wrapper around wordpress’ get_posts() function, so you can see all the parameters here:
    http://codex.wordpress.org/Template_Tags/get_posts
    http://codex.wordpress.org/Function_Reference/get_post

    it adds the post_type of tribe_events and sorted by ascending date by default.

    on a second note, to filter repeating events ( I was only after weekly events) I added this to my parameters in the query:
    ‘post_name’ => ‘weekly-events’

    I hope that helps!

    in reply to: tribe_get_events template tag #10121
    Kevin
    Member

    never mind, got it sorted, but one thing, is there any way to filter events by recurring/ non recurring?

Viewing 3 posts - 1 through 3 (of 3 total)