Automatically remove repeated words in slug.
-
Hi everyone, i am looking for a way to remove repeated words in wordpress slug.
let say my domain is ‘example.com’
and i have a category named ‘WordPress How To’
i have configured the permalinks to be ‘example.com/wordpress-how-to/’
then i want to create a post with the title “How To Create A Child Theme In WordPress”
then the permalinks will automatically generate this..
‘example.com/wordpress-how-to/how-to-create-a-child-theme-in-wordpress/’
since the words “wordpress,how,to” are repeated, how can i automatically remove those words when i insert the title.
i want the permalinks will autogenerate this…
‘example.com/wordpress-how-to/create-a-child-theme-in/’
it’s actually easy to just edit the permalinks by clicking the edit button.
but is there any functions.php code to make it autogenerated?
The topic ‘Automatically remove repeated words in slug.’ is closed to new replies.