PHP wprdpress help

Discussion in 'HTML & Website Design' started by rgordon83, May 25, 2007.

  1. #1
    i am in the middle of moving my blog to wordpress and i need some help listing subcategories like this:
    Category1
    -child 1
    -child 2
    -etc....

    my blog is at www.theguitarresource.com (far from done)

    this is my sidebar code. can you please tell me what to change:
    <h2><?php _e('Categories'); ?></h2>
    <ul>
    <?php
    if (function_exists('wp_list_categories'))
    {
    wp_list_categories('show_count=1&title_li=');
    }
    else
    {
    wp_list_cats('optioncount=1');
    }
    ?>
    </ul>
    </li>

    thanks!
     
    rgordon83, May 25, 2007 IP
  2. sri

    sri Active Member

    Messages:
    917
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    70
    #2
    I used a theme called TypoXP Reloaded on my blog earlier. It used to display sub categories automatically. You might want to download and check out its code.
     
    sri, May 25, 2007 IP
  3. Paul8368

    Paul8368 Well-Known Member

    Messages:
    614
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #3
    I've been struiggling with my wordpress blog too it doesn't appear to have installed correctly. how did you set it up? from a default script or something else?
     
    Paul8368, May 25, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Showing child cats under main cats is the default behavior.

    You could try adding &hierarchical=1 to the arguments.
     
    agnivo007, May 25, 2007 IP
  5. sri

    sri Active Member

    Messages:
    917
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    70
    #5
    Doesn't your webhost provide a cPanel? Usually it has a click-click installer for WordPress blog.
     
    sri, May 25, 2007 IP
  6. rgordon83

    rgordon83 Peon

    Messages:
    671
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #6
    can you show me where exactly to ad this? thanks!
     
    rgordon83, May 25, 2007 IP
  7. Paul8368

    Paul8368 Well-Known Member

    Messages:
    614
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #7
    yes my cpanel has click installer, but its not working correctly after installation won't allow posts, I think maybe there is an error on the install so I'm going to reinstall. The admin haven't been able to fix so thats the next step I think
     
    Paul8368, May 31, 2007 IP