Support » Plugin: Events Calendar » [Plugin: Events Calendar] "Link out" disobeys me

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author snumb130

    (@snumb130)

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

    Same in here.

    Did you find a way to sort this out?

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

    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 . ‘
    ‘;

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Events Calendar] "Link out" disobeys me’ is closed to new replies.