Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter neowp

    (@neowp)

    Yes and Yes, basically I am using this same code ie the

    if (is_category(‘blog’)) {

    do this

    }

    else {

    do that

    }

    on other pages , archives.php etc but I just cant get it to work in sidebar.php, i thought it maybe something to do with the scope of where is_category function is usable , but then it’s PHP and sidebar is just an include surely it should be usable ?

    Thread Starter neowp

    (@neowp)

    thats cool but im trying to something like this in sidebar.php

    if (is_category('blog') { ?>
    <div id="sidebar-top">
    <?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
    <?php endif; ?>
    </div>
    
    </div>
    
    <div id="sidebar-bottom">
    <?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(4) ) : ?>
    <h3><?php _e('Tag Cloud','arthemia');?></h3>
    <?php wp_tag_cloud(''); ?>
    <?php endif; ?> </div>   
    
    </div>
    
    <? }?>

    so i want those widgets to only show on the blog page

    Thread Starter neowp

    (@neowp)

    errrm Yes I am ?

Viewing 3 replies - 1 through 3 (of 3 total)