Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter marco_88

    (@marco_88)

    Thank you for answer but I resolve on different mode. I use unique video and change manually by css the resolution with media query and work propriety.

    Marco

    Thread Starter marco_88

    (@marco_88)

    Hi, I resolved some questions, but not all.

    I resolved the problem for invert ordering. I found a snippet on website and add to functions.php of my theme and works.

    The problem for view for default the past event and not the upcoming events I resolved with this snippet added to my functions.php:

    add_action( ‘parse_query’, ‘tribe_set_default_date’ );

    function tribe_set_default_date () {
    if ((get_query_var(“eventDisplay”) == “default”)) {
    $_REQUEST[‘tribe_event_display’] = ‘past’;
    }
    }

    But this it’s not perfect, and I have a little problem: If I stay on first page the link for next events is for first page, and not second page, and after I clicked the link changed and it’s second page.

    Other problem that I want see past events only if I don’t have upcoming events. If i have upcoming events I want to see the upcoming event. How can I see if have upcoming events and to do this only if I don’t have upcoming events?

    Thank you very much.

    Marco

Viewing 2 replies - 1 through 2 (of 2 total)