When I use this code anywhere in my wordpress e.g "MORE STORIES IN <?php echo single_cat_title(); ?>" So everything is uppercase except the title of the post! Anyone can tell me how to make the uppercase aswell while using this code?
When I use this code anywhere in my wordpress e.g "MORE STORIES IN <?php echo single_cat_title(); ?>" So everything is uppercase except the title of the post! Anyone can tell me how to make the uppercase aswell while using this code?
You do that with PHP.
So how do we use that? I'm not good in PHP?
<?php echo strtoupper(single_cat_title()); ?>
I think that's all you need. It's early and I'm still working on the first coffee ;)
That doesn't work! :(
Have a look at the image: http://b.imagehost.org/0311/hii.jpg
Please I'm in real need! Help me!
Bumping is against the way it goes here. Please don't. And yeah, it sucks that when you're in a bind, the free, volunteers, here sometimes have other things to take care of.
Be patient, be polite, and feel free to experiment on your own.
Like reading http://codex.wordpress.org/Function_Reference/single_cat_title tells me you're calling it wrong... <?php single_cat_title('MORE STORIES IN '); ?> would be right.
That said, I thought it had been deprecated after 2.7 but ... try this.
<?php
$current_category = single_cat_title("", false);
$current_category = strtoupper($current_category);
echo $current_category;
?>It's done from another way! I have edited general-template.php! Thanks for your help though!
This topic has been closed to new replies.