i thought that the link above was pretty bad at explaining it. if you go to the linked page it gets a little confusing. in the link above, it says that you should use this piece of code:
<?php wp_get_linksbyname('category'); ?>
but that is a little confusing. because for one, for that function to work you can’t use the NAME of the category, you have to use the NUMBER of the category. so, let’s say that you use the code that is originally listed (at least in the “connections” theme) in index.php:
<?php get_links('-1', '<li>', '</li>', ' '); ?>
so you change get_links
to get get_linksbyname
, but where do you ad the category number. at first i just added it at the beginning of the that function inside new single quotes so now it looks like this:
<?php get_linksbyname('3', '-1', '<li>', '</li>', ' '); ?>
but that doesn’t work because now there’s a “-1” at the beginning of each link. so… i deleted that '-1',
part of the code and then it worked. but then i noticed that the links were only of the 3rd category, but there was no way for me to display the category NAME. so i had to add an h2
above that function and actually type in the name of the categoryto make sure which category’s links were being posted.
not a very efficient way.