wp_list_category parent unclickable yet visable?
-
Good afternoon everyone, I am having quite a bit of difficulty figuring out how to go about making category 5 and category 14, parent categories, unclickable yet visable while still having their subs clickable. I would like to stay away from widgets and plugin reliance as a workaround if at all possible.
Current code:
<div id="side_categories"> <h3 class="mast">Menu</h3> <?php $catid = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name='Asides'"); ?> <?php $catid2 = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name='Featured'"); ?> <?php $catid3 = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name='Uncategorized'"); ?> <?php $catid4 = $wpdb->get_var("SELECT term_ID FROM $wpdb->terms WHERE name='Press Releases'"); ?> <ul class="cat"> <?php wp_list_categories('orderby=order&title_li=&sort_column=name&show_count=0&show_last_updated=1&use_desc_for_title=1&exclude=' .$catid. ',' .$catid2. ',' .$catid3. ',' .$catid4. '') ?> </ul> </div>
- The topic ‘wp_list_category parent unclickable yet visable?’ is closed to new replies.