Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
358 views
in Technique[技术] by (71.8m points)

wordpress - I'd like to add a function on my WP site, to generate the slug using only the first 3 characters of the title. Does anyone know how?

In order to create a really simple URL structure, and since the first three characters of my title are numbers and letters, I'd like to put in a function to generate the slug using only first 3 characters of the post title. A plugin would also do the trick.

I looked around, but i couldn't find anyone who talked about this.

I thank you in advance.

question from:https://stackoverflow.com/questions/65905330/id-like-to-add-a-function-on-my-wp-site-to-generate-the-slug-using-only-the-fi

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...