WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Change permalink data structure? (5 posts)

  1. level103
    Member
    Posted 1 year ago #

    Hi guys,

    Is it possible to change the permalink structure from:

    http://www.website.com/events/event-2013-09-03/

    to

    http://www.website.com/events/event-9th-march/

    It would be much useful!

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

  2. angelo
    NetWebLogic Support
    Posted 1 year ago #

    sorry, this might not be possible at the moment however maybe you can try something similar using this thread - http://wordpress.org/support/topic/plugin-events-manager-date-in-the-permalink?replies=11

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    you can change this actually, but it'd require custom coding.

    In case you can code, the bit of code you want to make is for this filter:

    $recurring_date_format = apply_filters('em_event_save_events_format', 'Y-m-d');

    Change Y-m-d to a valid php date() format.

  4. level103
    Member
    Posted 1 year ago #

    Hi Marcus,

    Much helpful!

    Where abouts would I add this or edit this code? Is this code already set in a .php file somewhere?

    Thanks!

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    that's the filter itself, you'd need to create php code to hook into that filter

    e.g.

    function my_em_filter(){
      return 'jS-F';
    }
    add_filter('em_event_save_events_format','my_em_filter');

    haven't tested this , but it should do what you are asking for.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic