Problem with single_cat_title after 3.0 upgrade, NOT resolved.
-
Hello!
I have just upgraded to version 3.0, and single_cat_title seems to have stopped working in my array, the category title won’t display anymore.
There is a [resolved] post a bit further down from this one, but it is NO help. He resolved it himself with very little details and I’m having the same problem! The original poster had said he got around the problem by using get_cat_name instead, but I’m confused and that doesn’t do anything but cause other problems within my code. We are both apparently using the same theme because our code is the exact same.
And if you couldn’t tell, I’m still pretty fresh to php.
Help!? ?? Thanks!
<?php // enter the IDs of which categories you want to display $display_categories = array(3,24,7,12,174,15,41,9,8,11,25,16,72); foreach ($display_categories as $category) { $count = 0; // Set the post counter ?> <div class="clearfloat"> <?php query_posts("showposts=4&cat=$category"); // Set showposts to 4 - 1 with excerpt and 3 without $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?> <h3><a href="<?php echo get_category_link($category);?>"> <?php // name of each category gets printed single_cat_title(); ?> </a></h3>
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘Problem with single_cat_title after 3.0 upgrade, NOT resolved.’ is closed to new replies.