I am writing a script to import posts from a CSV file, but I need to generate a slug from the data source in order to query Wordpress to see if the post already exists, how does Wordpress generate the slugs? I will need to generate the slugs in the exact same way in order to correctly query the Wordpress database.
Asked
Active
Viewed 34 times
-1
-
1Please share your internet research efforts, the community won't do that for you :-) See https://stackoverflow.com/help/how-to-ask and https://stackoverflow.com/help/mcve – jasie Aug 28 '19 at 10:01