WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to make a string a slug? (4 posts)

  1. dcritic
    Member
    Posted 4 years ago #

    How do i make a random string of text become hyphenated like a slug?

    For example,

    My First Post

    into

    my-first-post

    ?

    (Please give me a function)

  2. kpumuk
    Member
    Posted 4 years ago #

    Here is it: sanitize_title('My Super String')

  3. dcritic
    Member
    Posted 4 years ago #

    thx

  4. megakozak
    Member
    Posted 4 years ago #

    Not complete solutrion. What about native lanuage symbols? how do you format string with those little bastards in it?

Topic Closed

This topic has been closed to new replies.

About this Topic