I would personally achieve this by using strtolower
which changes the case of the string.
<?php
$categories = get_the_category();
foreach($categories as $category)
{
echo strtolower($category->cat_name) . ' ';
}
?>
I would personally achieve this by using strtolower
which changes the case of the string.
<?php
$categories = get_the_category();
foreach($categories as $category)
{
echo strtolower($category->cat_name) . ' ';
}
?>