Missing "next" link in month view

Home Forums Calendar Products Events Calendar PRO Missing "next" link in month view

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1311995
    Stephen Gasser
    Participant

    Running into an issue where the next month link is missing. I’ve deactivated all plugins except The Events Calendar and switched to the Twentyseventeen theme and I’m still having the issue.

    I’ve even tried adding this code per another thread I found with the same issue.
    `
    class ContinualMonthViewPagination {
    public function __construct() {
    add_filter( ‘tribe_events_the_next_month_link’, array( $this, ‘next_month’ ) );
    add_filter( ‘tribe_events_the_previous_month_link’, array( $this, ‘previous_month’ ) );
    }
    public function next_month() {
    $url = tribe_get_next_month_link();
    $text = tribe_get_next_month_text();
    $date = TribeEvents::instance()->nextMonth( tribe_get_month_view_date() );
    return ‘<a data-month=”‘ . $date . ‘” href=”‘ . $url . ‘” rel=”next”>’ . $text . ‘ <span>»</span></a>’;
    }
    public function previous_month() {
    $url = tribe_get_previous_month_link();
    $text = tribe_get_previous_month_text();
    $date = TribeEvents::instance()->previousMonth( tribe_get_month_view_date() );
    return ‘<a data-month=”‘ . $date . ‘” href=”‘ . $url . ‘” rel=”prev”><span>«</span> ‘ . $text . ‘ </a>’;
    }
    }
    new ContinualMonthViewPagination;
    `
    The site is a MU site if that makes a difference.

    http://swif2017.wpengine.com/events/

    #1314766
    Andras
    Keymaster

    Hello Vividimage,

    Thanks for using our plugins and for reaching out to us!

    I’m sorry about your issue with the month links. I checked your site and I see your issue.

    Normally the “next month” links are not visible where there is no event in the coming month / future, but I see that you do have events in July, August. I take it that is a recurring event.

    Could you test the following? Add a new non-recurring event in July and see if the URL appears. Then remove the event (or just set it to draft) and check again.

    What does that do?

    Thanks,

    Andras

    #1316239
    Stephen Gasser
    Participant

    I think that solved the issue, after adding a fake event in August the link for the next month reappeared and it stayed visible even after moving the August event to draft.

    #1317112
    Andras
    Keymaster

    That’s awesome, stoked to hear you managed to solve it!

    Since the topic resolved I am going to close it, but if you need anything else related to this topic or another please post a new one in the forum and we will be happy to help you out.

    Cheers,
    Andras

    PS: We’d be grateful if you would give us feedback on your satisfaction with support. Just click on one of the classy looking emojis below. 🙂 If you can spare a few words, that’s even better. Doublethanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Missing "next" link in month view’ is closed to new replies.