WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. darkstar123456
    Member
    Posted 1 year ago #

    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 :)

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. jonahcoyote
    Member
    Posted 1 year 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

About this Topic