开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜