[wp-testers] Links broken?

Ajay D'Souza ajaydsouza at gmail.com
Sat Apr 1 16:40:55 GMT 2006


Hi Michael,

get_links_list() works perfect.

However, wp_get_links seems to be giving the problem. I am using this code.
Got it from the codex a long time back.

<ul>
 <?php
 $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM
$wpdb->linkcategories");
 foreach ($link_cats as $link_cat) {
 ?>
  <li id="linkcat-<?php echo $link_cat->cat_id; ?>"><h3><?php echo
$link_cat->cat_name; ?></h3>
   <ul>
    <?php wp_get_links($link_cat->cat_id); ?>
   </ul>
  </li>
 <?php } ?>
</ul>

Any suggestions?

Ajay

From: "Michael E. Hancock" <mhancock at us.net>
> Subject: Re: [wp-testers] Links broken?
> To: <wp-testers at lists.automattic.com>
> Message-ID: <03ce01c654c8$52e57680$6402a8c0 at DELL8600>
>
> From: "Ajay D'Souza" <ajaydsouza at gmail.com>
> > What is the code to display links on the theme?
> >
> > During the last update the display of links just broke.
> >
> > Check the sidebar at http://www.ajaydsouza.net
>
>
> Ajay,
>
> I'm not seeing this using the default or Classic themes with
> get_links_list().
>
>
>
> Michael E. Hancock
>
>


More information about the wp-testers mailing list