Hello everybody!
My urls for posts in WordPress looks like this: http://localhost:8888/blabla/book/yes-vi-testar
Using the_permalink()
would generate "http://localhost:8888/blabla/book/yes-vi-testar" but I want to cut the first 34 characters to get a string like "yes-vi-testar". How do I use php substr in a case like this? I'm confused... I tried
<?php
$friendlypermalink = substr(the_permalink(), 34);
?>
but that doesnt do the trick.