wp_get_linksbyname is deprecated. Change it to use wp_list_bookmarks instead.
Thanks, Otto, that worked except now I have 2 Blogroll headers. Only one set of lists, though. How weird is that? The following is from Sidebar.php
<ul><li class="listHeader"><h2><?php _e('Archives'); ?></h2>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<ul><li class="listHeader"><h2><?php _e('Blogroll'); ?></h2>
<?php wp_list_bookmarks('Blogroll', 'before=
<li>&after=</li>
&orderby=name&show_description=0&show_updated=1') ?>
</ul>
How weird is that?
Hmmm… Don’t you have “Blogroll” twice in your code above?
Also, did you read the page I sent you to? Because you’re not calling wp_list_bookmarks correctly either.
Try this:
<ul><li class="listHeader"><h2><?php _e('Archives'); ?></h2>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<ul><?php wp_list_bookmarks('before=<li>&after=</li>&orderby=name&show_description=0&show_updated=1');
?>
</ul>
The Archives work fine but I don’t understand why I get Blogroll twice. There’s only one listed
<ul><li class="listHeader"><h2><?php _e('Blogroll'); ?></h2>
</ul>
<ul><?php wp_list_bookmarks('before=
<li>&after=</li>
&orderby=name&show_description=0&show_updated=1');
?>
</ul>
I appreciate your help very much Otto. Thank you
wp_list_bookmarks does more than just display the bookmarks. It sorts them into their categories and the second “Blogroll” is the name of that category. This way, you can rename the category to instantly change the name of it on the sidebar. Or add a new category with new links and instantly have that appear on the sidebar.
Did you try the code I posted above? That code would eliminate the extra “Blogroll”.
It’s done. Thank you one million. I guess I didn’t do it right before but now that second Blogroll is gone.
Thanks Otto42
I’m not sure why but my homepage has no categories, archives or blogroll.
It only has recent comments
Anyone know why?
I did some changes to get a different header in a file but I can’t remember which one or how I got to it?
Anyone know what this file is called? and if it is related to other problem of no categories/archives/blogroll not showing?
I tried use Otta42’s code, but it did not work for my blog. Use this if you had tried otta42’s code first and doesn’t work.
<li class="listHeader"><h2><?php _e('Archives'); ?></h2>
<ul><?php wp_get_archives('type=monthly'); ?>
</ul></li>
<?php wp_list_bookmarks
('before=<li>&after=</li>&orderby=name&show_description=0&show_updated=1');
?>