post_name and —
-
I’m having some trouble on a plugin I’m writing. I need the post_name to match what I tell it, but it keeps replacing consecutive dashes with a single dash. So I use:
‘post_name’ => ‘wegokuhn–jg4ew-g4’
but by the time it gets to the database it’s ‘wegokuhn-jg4ew-g4’
This is stopping me from effectively identifying duplicate posts. Is there any way to stop this particular action from happening when using wp_insert_post?
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘post_name and —’ is closed to new replies.