Alter start date for Day view

Home Forums Welcome! Pre-Sales Questions Alter start date for Day view

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1062497
    Nick
    Guest

    Hi,

    Hoping you can help out.

    I have the events calendar and am trying to get the day view to be able to start on a specific day, rather than todays current date.
    Is there a way of achieving this?

    Currently I have amended a function I found that inputs a date into the search bar, however, this breaks the Next Day links and just defaults back to that chosen date.

    Is there a way of acheiveing this, so that the day view starts on a specific date but then can keep the Next/Prev day links working? My snippet doesnt affect the list views navigation, just begins the list view on that date.

    The function snippet is as follows:

    function tribe_set_default_date () {
    if ( !is_single() && empty( $_REQUEST['tribe-bar-date'] ) ) {
    $_REQUEST['tribe-bar-date'] = '2016-03-11';
    }
    }
    add_action( 'parse_query', 'tribe_set_default_date' );

    Many Thanks,
    Nick

    #1062521
    Nick
    Guest

    Its seems as though the next day navigation wants to work and the url changes, but the content does not change, or the date within the ‘day of’ search bar.

    Is there anything we can do about this?

    I saw the other post similar to this here https://theeventscalendar.com/support/forums/topic/different-date-ranges-for-different-views/

    But this only solves the fact that I could have the date appear only when on the day page, the Next Day pagination links still don’t work, again the url changes but not the content..

    #1062564
    Brian
    Member

    Hi,

    Thanks for using the Events Calendar.

    Here on the pre-sales forum, I’m afraid we do not provide technical support. I would ask that you take any technical support questions across to our wordpress.org forum – our staff scan it periodically and other community members may also be able to help out.

    The Events Calendar

    Thanks again!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Alter start date for Day view’ is closed to new replies.