WordPress title as id
WordPress title as id
Out of context: Reply #4
- Started
- Last post
- 6 Responses
- thatboyneave0
This actually worked a treat with only one line - from the Kirupa link ukit posted.
strtolower(preg_replace('/[^a-zA... , '' , get_the_title()));
It strips out all the spaces rather than replacing them with hyphens but that works just as well for my purposes.
Thanks again.