WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Bypass WordPress' tolerance of Permalinks (3 posts)

  1. Mackser
    Member
    Posted 2 years ago #

    Hi guys,

    I'm writing my first plugin for wordpress. Of course I want the results to be search-engine-friendly and have a logical hierarchy in the url.

    Therefore I am using custom rewrite rules that look something like this:

    http://pastebin.com/k9nDT4XY

    This is working quite fine, I only have one problem:

    If I have a page called "Event Management" with the URL-slug "event-management", wordpress calls that page instead of letting my plugin know, that "showevent=1".

    How can I bypass this tolerance of "short" permalinks or how do I overrule this tolerance? How can I tell wordpress, that I am preciseley looking for "EVENT" and not something with "EVENT" in it?

    Thanks for your help, guys. :)

    Cheers
    Macks

    EDIT: oh yeah, I know, that using wp flush on every init isn't very economically, this is just for testing purposes.

  2. Mackser
    Member
    Posted 2 years ago #

    Hey guys,

    can anyone help me out?

    Cheers

    Macks

  3. Paul Clark
    Member
    Posted 2 years ago #

    You might try hooking into parse_request instead of the permalink system for this purpose. See http://willnorris.com/2009/06/wordpress-plugin-pet-peeve-2-direct-calls-to-plugin-files

Topic Closed

This topic has been closed to new replies.

About this Topic