The Events Calendar
[BUG (solution)] next/prev link not showing correctly from AJAX (2 posts)

  1. darkstar123456
    Posted 3 years ago #


    I made a WordPress with ajax loaded pages and I encouter a little problem : when loading a single event from ajax, the next/prev links were not showing properly, ie :
    <a href="link-to-my-page"></a>Text content of my link

    After a long time of research, I found that the return of these links (in HTML source) is this :
    <a href=link-to-my-page/>Text content of my link</a>

    Solution :
    In Plugins/the-events-calendar/lib/the-events-calendar.class.php at line 2579 replace :
    echo '<a href='.tribe_get_event_link($results).'>'.$anchor.'</a>';

    by this line :
    echo '<a href="'.tribe_get_event_link($results).'">'.$anchor.'</a>';

    You should always quote or double-quote your attributes !

    Anyway, thank's for the great plugin :)


  2. jonahcoyote
    Posted 3 years ago #

    Hi darkstar123456,

    Thanks for this solution! Hopefully it will help others :)

    - Jonah

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic