darklaw
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: Problem with single_cat_title after 3.0 upgrade, NOT resolved.Thank you, that worked!
😀
Forum: Fixing WordPress
In reply to: Problem with single_cat_title after 3.0 upgrade, NOT resolved.Thanks for the cleanup advice…
but that still doesn’t address my category titles. Any advice on that?
Here’s the actual page – http://www.TruthisTreason.net
In the center-area column, it should denote the category name in <h3 above each group of articles… however, with the 3.0 upgrade, they vanished.
?
Respectfully,
Kevin HaydenForum: Fixing WordPress
In reply to: problems with single_cat_title after upgrading to 3.0Can you please elaborate?
I encountered the exact same issue. After replacing “single_cat_title” with “get_cat_name” I am getting even worse problems. I’ve played around with it a bit, but I’m still pretty fresh when it comes to php.
It looks like we’re both running the same theme maybe?<div id="rightcol"> <?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> <?php while (have_posts()) : the_post(); ?> <?php // Checks if this is the first post of each category if ($count == 0) { // this grabs the image filename $values = get_post_custom_values("rightcolimage"); // this checks to see if an image file exists if (isset($values[0])) { ?>
Viewing 3 replies - 1 through 3 (of 3 total)