Get your wp title with ->
get_the_title() method.
Replace space with “-” using ->str_replace() method.
Convert to lowercase letter using strtolower() method.
<?php echo strtolower(str_replace(' ', '-', get_the_title())); ?>
— world of technologies
Get your wp title with ->
get_the_title() method.
Replace space with “-” using ->str_replace() method.
Convert to lowercase letter using strtolower() method.
<?php echo strtolower(str_replace(' ', '-', get_the_title())); ?>
Leave a comment