• Resolved londonman

    (@londonman)


    Hello Stephen,

    I would like to set the permalink from an individual event, so that is points to a specific page on my website, rather than the default single event page. the Permalinks option under settings>event organiser won’t let me change it as i would need to remove events/events in order to set the permalink on the add event page (and i won’t let me).

    Is there anyway I can do this.

    http://wordpress.org/extend/plugins/event-organiser/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    The permalink settings refer to the structure of the permalinks only. You can’t remove it completely as this would conflict with WordPress’ default structures and cause 404s.

    If you’re only concerned about the fullCalendar, then you can add the following code into your functions.php or site utility plug-in:

    add_filter('eventorganiser_calendar_event_link','londonman_event_calendar_url',10,3);
    function londonman_event_calendar_url($url, $event_id, $occurrence_id){
       $url='';//Set url to wherever you want the events to link to
       return $url;
    }
    Thread Starter londonman

    (@londonman)

    Thanks Stephen,

    The only problem with this solution is that I want individual events to direct to different pages on the website, so would need to specify page to link to per event.

    Is there anyway we could set up this function so that it adds different links to different event categories?

    If you want each event to point to a different page – then you should use the event’s page. If you want each occurrence to point to a different page – unfortunately that’s not possible – and the plug-in wasn’t designed to handle events that way.

    If you want to point each event to point to a different page depending on the category, then in the callback londonman_event_calendar_url() you have access to the (post) event ID $event_id. You can use that to get the terms (of event-category) the event belongs to (see http://codex.wordpress.org/Function_Reference/get_the_terms), and then return the appropriate url.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Event Organiser] link to different page from full calendar’ is closed to new replies.