WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Date in the permalink (11 posts)

  1. Kerfred
    Member
    Posted 1 year ago #

    Hello,

    Congratulations for this wonderful and very useful plugin.
    I just have one question that I didn't find the answer in the forum.

    Is it possible to have the date in the format Y/m/d in the event permalink ?
    Thanks.

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

  2. agelonwl
    Member
    Posted 1 year ago #

    not possible at the moment.

  3. Kerfred
    Member
    Posted 1 year ago #

    I have written a plugin that does the trick.
    Now, the events URLs are like: /event/2012/05/13/event-slug

    To do that, I have used your filter 'em_event_get_permalink' and I have defined a new rewrite rule.

    I can send it to you so you can include it in your plugin as an option, if you want.

  4. agelonwl
    Member
    Posted 1 year ago #

    thanks, can you share it using pastebin?

  5. Kerfred
    Member
    Posted 1 year ago #

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    thanks for the effort, looking at that gave me an idea, it probably wouldn't be too hard to do a search/replace of the common WP permalink placeholders and replace them with matching regex strings...

    however, I'd rather sit on this because I'd suspect this is something WP will address eventually

  7. Kerfred
    Member
    Posted 1 year ago #

    I have updated my plugin in order to use the new permalink everywhere in WordPress. The source code is available at http://pastebin.com/v4fT1671

  8. agelonwl
    Member
    Posted 1 year ago #

    thx for always updating us.

  9. nwlforummod
    Member
    Plugin Author

    Posted 1 year ago #

    am going to marked this as resolved.

  10. Caesar19
    Member
    Posted 1 year ago #

    Kerfred: thank you for your work, I could use this too (with some permalink format editing), but I do not know how can I install/use your plugin (code). Can you help me?

    Thanks.

  11. Kerfred
    Member
    Posted 1 year ago #

    Hi, you just have to save the code as a PHP file, for example fg-events-manager-hack.php
    Then upload this file to the wp-content/plugins directory
    And activate the plugin FG Events Manager Hack in the plugins section.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic