Forums

How to show my subcats (4 posts)

  1. rgordon83
    Member
    Posted 2 years ago #

    // 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>

  2. jeremyclark13
    Moderator
    Posted 2 years ago #

    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.

  3. rgordon83
    Member
    Posted 2 years ago #

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

  4. rgordon83
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic