categories and parents for a total noob
-
Hi folks
I’m new to WP and I’m currently playing with customising etc. I’m stuck on something at the moment though, so I thought I’d ask here.My category is currently looking something like this;
Parent name
> cat a
> cat b
> cat c
> cat d
Parent name
> cat a
> cat b
> cat c
> cat d
Parent name
> cat a
> cat b
Parent name
> cat a
> cat b
> cat c(The > is a triangle gif graphic)
My first problem is that the triangle appears 2 times in each cat group eg:
Parent name
> cat a
> > cat b
> cat c
> cat d
Parent name
> cat a
> > cat b
> cat c
> cat d
Parent name
> > cat a
> cat b
Parent name
> cat a
>
> cat b
> cat c
The last one apprears between cat a and cat b.My next problem is that I want to format my parents in a different colour, bold etc. The code in my sidebar.php file is this:
<div class=”left”>
<div class=”sub_left”>
<div class=”left_header”>Categories</div><br style=”line-height:15px “/>-
<?php wp_list_cats(‘sort_column=name& hide_empty=0’); ?>
<br style=”line-height:25px “/>
<div class=”left_header”>Archive</div><br style=”line-height:15px “/>-
<?php get_archives(‘monthly’,’10’,’custom’,’
- ‘,’
‘); ?>
<br style=”line-height:30px “/>
<?php
$link_cats = $wpdb->get_results(“SELECT cat_id, cat_name FROM $wpdb->linkcategories”);
foreach ($link_cats as $link_cat) {
?>
<div class=”left_header”><?php echo $link_cat->cat_name; ?></div><br style=”line-height:15px “/>-
<?php get_links($link_cat->cat_id, ‘
- ‘, ‘
‘, ‘
‘, FALSE, ‘id’, TRUE,
TRUE, -1, TRUE); ?><br style=”line-height:25px “/>
<?php } ?>
<div class=”left_header”>Meta</div><br style=”line-height:15px “/>-
<?php wp_register(‘
- ‘, ‘
- <?php wp_loginout(); ?>
- Valid XHTML
- XFN
- WordPress
‘); ?>
<?php wp_meta(); ?>
</div>
</div>I can’t really see how I can create a css tag and insert it to format the parent text. Any suggestions how I can do this?
My final problem is that my category parents aren’t in the order i want them. How can I specificy the order of parents in the list?
Sorry for the long post and thanks for any help you can offer.
Is this actually a good place to be asking basic questions or is there a community for the “not so knowlegable”?
- The topic ‘categories and parents for a total noob’ is closed to new replies.