Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kcomphlint

    (@kcomphlint)

    How would I put that in a page? Right now I am just linking to the links.php file.
    Also, would the ‘category’ just be the name I give to the category? For instance, Internet Explorer would be what I would use, or is there some other id associated with it?

    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.

    Podz’s link from July 2004 is outdated. Please refer to the new documentation for wp_get_linksbyname() and wp_get_links().

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show Categories of of Links from Link Manager’ is closed to new replies.