Title: Post Slug function?
Last modified: August 18, 2016

---

# Post Slug function?

 *  [unknownserv](https://wordpress.org/support/users/unknownserv/)
 * (@unknownserv)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/post-slug-function/)
 * Is there a function that turns a normal string (eg. WordPress new post!) into
   a post slug format? (eg. wordpress-new-post)
 * Cheers.

Viewing 1 replies (of 1 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/post-slug-function/#post-457771)
 * The WP function you’re looking for is `sanitize_title()`

Viewing 1 replies (of 1 total)

The topic ‘Post Slug function?’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [slug](https://wordpress.org/support/topic-tag/slug/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/post-slug-function/#post-457771)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
