• Hello,

    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 ??

    https://www.ads-software.com/extend/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[BUG (solution)] next/prev link not showing correctly from AJAX’ is closed to new replies.