WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] changing the default slug prefix for reacurring events (8 posts)

  1. asafche
    Member
    Posted 1 year ago #

    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/

  2. agelonwl
    Member
    Posted 1 year ago #

    hi,

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

  3. asafche
    Member
    Posted 1 year ago #

    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.

  4. agelonwl
    Member
    Posted 1 year ago #

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

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    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.

  6. asafche
    Member
    Posted 1 year ago #

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

  7. agelonwl
    Member
    Posted 1 year ago #

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

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    yes it will be

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic