Home › Forums › Calendar Products › Events Calendar PRO › Missing "next" link in month view
- This topic has 4 replies, 2 voices, and was last updated 8 years, 9 months ago by
Stephen Gasser.
-
AuthorPosts
-
June 29, 2017 at 8:21 am #1311995
Stephen Gasser
ParticipantRunning 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.June 30, 2017 at 2:45 pm #1314766Andras
KeymasterHello 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
July 5, 2017 at 6:13 am #1316239Stephen Gasser
ParticipantI 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.
July 6, 2017 at 1:49 pm #1317112Andras
KeymasterThat’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,
AndrasPS: 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!
-
AuthorPosts
- The topic ‘Missing "next" link in month view’ is closed to new replies.
