WordPress.org

Ready to get started?Download WordPress

Forums

Post Slug function? (2 posts)

  1. unknownserv
    Member
    Posted 7 years ago #

    Is there a function that turns a normal string (eg. WordPress new post!) into a post slug format? (eg. wordpress-new-post)

    Cheers.

  2. Kafkaesqui

    Posted 7 years ago #

    The WP function you're looking for is sanitize_title()

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags