Forums

i18n permalinks (/page/xx to /other_lang_page/xx ) (2 posts)

  1. r4zv4n
    Member
    Posted 4 years ago #

    I've been searching around quite a while, so I finally come here to ask :)

    I'm building a blog that's in a different language than the default "english". I've i18n'd pretty much everything, except the permalinks for paged archives / posts.

    What I want is to use another word for "page", in permalinks.

    How would I go about doing this?

    I've looked at wp_permalink hooks, but.. didn't really find a lot of docs to clarify what I should do :(

    Thanks in advance for any suggestions.

  2. Austin Matzko
    Member
    Posted 4 years ago #

    This will be really tricky, as "page" is hard-coded into the rewrite pattern matching.

    Basically, to do what you want, you would need to add a localized rewrite endpoint and then check for it on WordPress initialization and modify queries to show the corresponding page.

Topic Closed

This topic has been closed to new replies.

About this Topic