Hello,
The theme I'm using uses this code:
$display_categories = array(75);
foreach ($display_categories as $category) { ?>
<div>
<?php query_posts("showposts=1&cat=$category");?>
<h2><a href="<?php echo get_category_link($category);?>"><?php single_cat_title(); ?> »</a></h2>
How do I modify the first line to use the category name -and wait for it, still get the category link love from the get_category_link function.
So, if I want to use the name of my blog as a category, say, $cat75 = bloginfo('name'); but will change the value of my blog name ("myBlogName") on a whim, I'd like the template to be able to handle that.
I tried $display_categories = array($cat75); which prints the "myBlogName" title but not as a link to the category...
I'll do the same kind of thing for all of the categories as I'll no doubt be changing these often and don't want to go in and mess with the integer values everytime...
Thanks!