• Resolved paulmolnar

    (@paulmolnar)


    I’m trying to display the current week of events in a list view. But apparently I can only show one or the other.

    This is the code I’m using:
    $now = date( “Y-m-d”, time() );
    echo do_shortcode(‘[tribe_events view=”week” date=”$now”]’);

    Anyone know how I can do this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Abz

    (@abzlevelup)

    Hi @paulmolnar,
    ?
    I’m curious about this one. I suspect that there’s a syntax error here:

    $now = date( "Y-m-d", time() );
    echo do_shortcode('[tribe_events view="week" date="$now"]');

    Could you try this do_shortcode here with the PHP variable appended:?
    echo do_shortcode('[tribe_events view="week" date="'.$now.'"]');

    Out of the box, not setting the date parameter should show the events on the day and onwards — you can disregard it if you want to show “today” events. Also, please note that the Shortcode is only available with the Pro version of The Events Calendar.
    ?
    Let me know if that helps.
    ?
    Best,
    Abz

    Plugin Support Abz

    (@abzlevelup)

    Hey @paulmolnar, this thread has been inactive for a while, so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up, and we’d be happy to help.

    Cheers,
    Abz

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Week view & List view not working’ is closed to new replies.