How can I check if a slug already exists in my WordPress database?
I'd like to check any slug (post, page, taxonomies and custom post type/taxonomies)
thanks
http://codex.wordpress.org/Function_Reference/wp_unique_post_slug has the answer. If you use it giving it the desired slug, it will return one that truly is unique.