• Resolved swifthaus

    (@swifthaus)


    As is, I cannot move to the next month view, even though there is an event scheduled. I read in a thread to add the following in my functions.php file. Still no luck. Am I missing something?

    /**
     * Allows visitors to page forward/backwards in any direction within month view
     * an "infinite" number of times (ie, outwith the populated range of months).
     */
     
    if ( class_exists( 'Tribe__Events__Main' ) ) {
     
      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 = Tribe__Events__Main::instance()->nextMonth( tribe_get_month_view_date() );
              return '<a data-month="' . $date . '" href="' . $url . '" rel="next">' . $text . ' <span>&raquo;</span></a>';
          }
     
          public function previous_month() {
              $url = tribe_get_previous_month_link();
              $text = tribe_get_previous_month_text();
              $date = Tribe__Events__Main::instance()->previousMonth( tribe_get_month_view_date() );
              return '<a data-month="' . $date . '" href="' . $url . '" rel="prev"><span>&laquo;</span> ' . $text . ' </a>';
          }
      }
     
      new ContinualMonthViewPagination;
     
    }

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @swifthaus
    Thanks so much for reaching out, and I’m sorry to hear that you are still experiencing this issue!

    You should not have to add snippets of code to enable our basic functionality.

    To find the source of the issue let’s rule out any interference by other plugins or the theme. Please go through our Conflict Testing Guide to troubleshoot the issue.

    You may need to perform the conflict tests on a staging or test site as it will disruption a live site.

    Also, check to see if you are using the latest version of our plugins.

    Thanks
    Rob
    TEC

    Hey there! 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘not able to move to next month view, even though an event is scheduled’ is closed to new replies.