Editing the permalink
-
In the Gutenberg interface there is no provision to edit the permalink. It doesn’t even update if you edit the title. Not withstanding this, manual editing of the permalink is preferable for the following reason.
Sometimes if we have two posts of a custom post type, they may have the same name.
Example.
I have a very large database of Irish speaking schools that is presented as an online directory. The site needs to use WPML as we need to show all pages in English and Irish. In some instances we may have a number of schools with the same name: Scoil Naomh Josef, one is in Co. Mayo, one is in Co. Galway and another is in Co. Wexford.
The styling guide prefers to title the schools cleanly without appending counties in brackets. Vistors to the website will search the directory on a county by county basis so differentiation is not an issue.
WPML works by querying a matched item in another translated language by using the permalink. If three schools have the same permalink base on the post tittle, jumping to a different language can end up with erratic results with the Irish translation for Scoil Naomh Josef in Mayo pointing to Scoil Naomh Josef in Wexford. To counter this you need to manually edit the permalinks to scoil-naomh-josef-mayo, scoil-naomh-josef-galway and scoil-naomh-josef-wexford.
- The topic ‘Editing the permalink’ is closed to new replies.