Separate Links Page – Don’t Include Category Named Links
-
Can anyone tell me how to modify the following code so that the default “Links” category is not included. I never save links to that category, but the system will not let me delete it. It shows up as an empty heading on my Links page.
Thanks!
<ul id=”links”>
<?php $link_cats = $wpdb->get_results(“SELECT cat_id, cat_name FROM $wpdb->linkcategories”); foreach ($link_cats as $link_cat) { ?>
<li id=”linkcat”><h2><?php echo $link_cat->cat_name; ?></h2><li id=”link”><?php get_links($link_cat->cat_id); ?>
<?php } ?>
This is a great service. Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Separate Links Page – Don’t Include Category Named Links’ is closed to new replies.