WordPress.org

Ready to get started?Download WordPress

Forums

Events Calendar
"Link out" disobeys me (5 posts)

  1. brimby
    Member
    Posted 2 years ago #

    No matter what I set the "Link Out" to when creating an event, the anchor is set to simply the URL of the page I am currently on. I want my events list on my sidebar to direct all my users to the main calendar page when they click on an event, but all it does is reload the page. Any ideas? The plugin is great so far besides this issue.

    Here is the website: http://www.recoursemediation.com/development/

    Thanks

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

  2. snumb130
    Member
    Plugin Author

    Posted 2 years ago #

    I haven't updated the plugin in a while so I don't how compatible it is with the latest version of WordPress.

  3. anallabres
    Member
    Posted 2 years ago #

    Same in here.

    Did you find a way to sort this out?

  4. anallabres
    Member
    Posted 2 years ago #

    I've found where but not how really.

    In ec_calendar.class.php lines 158-160

    $titlinked = '<a href="' . get_permalink($PostID) . '">'
    								  . '' . $day_names . ' ' . $startDate . '' . __(': ', 'events-calendar')
    								  . $event->eventTitle . '</a>';

    get_permalink($PostID) is not working properly but no idea what shoud be in there. At the moment I have changed that to the direct link I want my event to point because at the moment is just one. But eventually I will have different links to point.

    Any ideas??

  5. schleini
    Member
    Posted 1 year ago #

    Hi,

    try the following code in ec_calendar.class.php:

    /* $PostID = isset($event->postID) ? $event->postID : ''; */
    $linkout = isset($event->eventLinkout) ? $event->eventLinkout : '';
    /* if ($PostID == '') */
    if ($linkout == '')

    $titlinked = ''.$day_names.' '.$startDate.': ' . $event->eventTitle;
    else
    $titlinked = ''
    . '' . $day_names . ' ' . $startDate . '' . __(': ', 'events-calendar')
    . $event->eventTitle . '
    ';

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic