WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] v5.2.3 URL rewrite problem when events page is a subpage? (5 posts)

  1. webaware
    Member
    Posted 1 year ago #

    G'day,

    I've upgraded EM to 5.2.3 on my local copy of a site that has the events page two levels deep in the menu, e.g. example.com/level0/level1/events. This results in a page not found error. Looking at the rewrite rules with an inspector, I see that the rules are now events/* instead of level0/level1/events/*, and downgrading to EM 5.1.8.5, they return to level0/level1/events/* as expected.

    I see that classes/em-permalinks.php now uses the post_name instead of the path, which I'm pretty sure is not what you want here because WP is looking up the page using get_page_by_path(), and that wants the full path to the page. Incidentally, it also means that if there's an attachment with the same slug, the attachment's post will be pulled instead.

    Let me know if you need me to provide more detail.

    Luckily, I haven't upgraded EM on the live site yet :)

    cheers,
    Ross

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

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Hi Ross, will investigate and fix.

    thanks

  3. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I´ve just updated the plugin with the fix, let me know how it goes!

  4. webaware
    Member
    Posted 1 year ago #

    G'day Marcus,

    5.2.4 works fine, thanks!

    cheers,
    Ross

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    thx for confirming :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.