[resolved] How to manipulate autogenerated permalink? (3 posts)

  1. pedjas
    Posted 7 years ago #

    I have set wordpress to generate custom permalink structure using /%postname%/.

    But, someof the contenst is written in cyrillic alphabet, and I want permalinks to be latin alphabet only.

    Now, I have to edit each permalink and type it in in latin characters manually.

    My idea is to change the way permalinks are autogeneraed, by passing autogenerated link through my custom function that would replace each cyrillic character with aproppriate latin.

    I know how to transliterate form cyrillic to latin. Problem is I cannot find a hook which I should use to apply this transliteration.

    To be clear, I do not want to change dipslay of permalink (if I understood well, 'the_permalink' filter is supposed to do that. I want permalinks to be altered before they are writen to database.

  2. Take a look at the "editable_slug" filter. Also possibly the "sanitize_title" filter.

  3. pedjas
    Posted 7 years ago #

    Just came to inform that I solved issue using 'sanitize_title', and I see you already posted info. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic