• Resolved sriki

    (@sriki)


    Hello I am having a problem after upgrading to wordpress 3.0. My sidebar should display category title along with it’s link to the respective category. However it has stopped showing the category title after upgrading to wp 3.0. Previously it used to work fine with wp 2.84

    Here is the faulty code from sifebar.php

    $cp_baseURL = get_bloginfo('url');
    
    $ar_headline = get_settings( "ar_headline" );
    if( $ar_headline == 0 ) { $ar_headline = $cp_categories[0]->cat_ID; }
    
    $ar_featured = get_settings( "ar_featured" );
    if( $ar_featured == 0 ) { $ar_featured = $cp_categories[0]->cat_ID; }
    
    foreach ($postcat as $cp_pC ) {
    
    	query_posts('showposts=1&cat=' . $cp_pC . ',-' . $ar_headline . ',-' . $ar_featured); ?>
    
    	<div class="spoiler clearfloat">
    
    	<h3 class="catt-<?php echo $cp_pC; ?>">
    <a href="<?php echo get_category_link( $cp_pC ); ?>">
    <?php single_cat_title(); ?> &raquo;</a>
    </h3>

    Please help me resolve this issue.

    you can check out my faulty blog after upgrade to 3.0
    http://www.way-to-lose-fat.com/ (not showing cat title on sidebar)

    I am running another blog with same template with wp 2.84 which is working perfectly and showing category titles in sidebar. you can look at this site here: http://www.gohacking.com/ (showing cat title on sidebar)

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problem with single_cat_title after upgrading to wordpress 3.0’ is closed to new replies.