creating slug in wordpress while inserting data from csv
I have created a plugin to upload the csv to wordpress. what i want to know is how to create the slug of the title while inserting it into wp_posts.
Current i am using normal mysql query to insert th开发者_运维技巧e data.
Any help?
Thanks
The post_name
column in wp_posts
contains the slug. For generating the slug itself use sanitize_title
精彩评论