• // recent comments
    // —————
    if (function_exists(‘get_recent_comments’)) { ?>
    <h2><?php _e(‘Recent Comments:’,’regulus’); ?></h2>

      <?php get_recent_comments(); ?>

    <?php } ?>

    <div class=”col”>

    <h2><?php _e(‘categories’,’regulus’); ?></h2>

      <?php //list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 0, 1, 1, 1, 0,”,”,”,”,”);

      wp_list_cats( ‘hierarchical=1’ ); ?>

    <h2><?php _e(‘Archive’,’regulus’); ?></h2>

      <?php

      if( bm_getProperty( ‘months’ ) == 1 ) {
      wp_get_archives(‘type=monthly’);
      } else {
      wp_get_archives(‘type=monthly&limit=15’);
      }

      ?>

    </div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have a look at this. wp_list_cats and list_cats have both been deprecated in 2.1 so you’ll need to rewrite you code. Use wp_list_categories instead.

    Thread Starter rgordon83

    (@rgordon83)

    crap, i don’t really know how to write PHP…. SLOWLY trying to figure it out though…

    Thread Starter rgordon83

    (@rgordon83)

    ok. having lots of trouble with this one. can someone please show me what the PHP SHOULD look like? thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show my subcats’ is closed to new replies.