WordPress.org

Support

Support » Plugins and Hacks » [Resolved] changing the default slug prefix for reacurring events

[Resolved] changing the default slug prefix for reacurring events

  • The default slug is giving each instance the name of the event companioning it with the date.
    Maybe because i work with an RTL language and it’s messing up my url’s and the event isn’t showing because of redirecting issue.

    when i’m changing the hole date in the slug to a number like “event-1”, “event-2”, “event-3”, it does work. i wanted to know if i can change somehow the slug.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • hi,

    did you mean the /events slug? see settings > pages > permalink slugs or removing the date prefix on recurring slug?

    hi, thanks for the replay.
    the date prefix on recurring slug is messing with the interpreter. I want to change the prefix. instead of סדנת-בנייה-באדמה-dd-mm-yyyy it will be סדנת-בנייה-באדמה-n while n is the order number of the specific event on the series of ther recurring events.

    that might be possible however it requires a lot of coding on your side; e.g. try hooking into em_event_save_events filter.

    For reference, see classes/em-event.php function save_events()

    Plugin Author Marcus

    @netweblogic

    I’ll be adding a filter to line 1750 which will replace that line with:

    $post_fields['post_name'] = $event['event_slug'] = $meta_fields['_event_slug'] = apply_filters('em_event_save_events_slug', $post_name.'-'.date($recurring_date_format, $day), $post_fields, $day, $matching_days, $this);

    using that filter you can change the slug to whatever you want, but PHP will still be needed.

    PHP is perfectly fine.
    It will be implemented in the next Update?
    THANKS!

    yes, there is a possibility that it will included on the next update.

    Plugin Author Marcus

    @netweblogic

    yes it will be

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] changing the default slug prefix for reacurring events’ is closed to new replies.