Display a text field that automatically slugify its content.
Setting name | Description |
Default Value | Appears when creating a new post |
Placeholder Text | Appears within the input |
Prepend | Appears before the input |
Append | Appears after the input |
Character Limit | Leave blank for no limit |
Value can then be retrieved using the common get_field()
function. Note that the value is processed by the sanitize_title()
function before saving. Usage example:
$slug = get_field('slug');
// mauris-blandit-aliquet-elit