Forums

Getting Rid of "Links" in get_links (7 posts)

  1. matt
    Troublemaker
    Posted 5 years ago #

    Zaaba, there are different tags for grabbing a list of lists with labels (get_links_list) and just getting one. I would recommend reading the documentation on the link template tags.

  2. gregor
    Member
    Posted 5 years ago #

    Where did you find

    <?php wp_get_linksbyname('Links'); ?>
    this code? The Links.php file?

  3. Zaaba
    Member
    Posted 5 years ago #

    @gregor: found this by doing a search on the Forums. Its also noted in the Wiki.

  4. gretchen
    Member
    Posted 4 years ago #

    Don't know if anyone's still looking for this info, but I found this in the Wiki:
    <?php wp_get_linksbyname('category'); ?>
    Where it says "category" you either fill in the links category name or you leave it blank. If you leave it blank, it will automatically pull in links from all categories. (I misunderstood a previous comment to mean that I should leave "links" in that space, but when I read it again, I realized that person was saying the same thing I am. I thought maybe if I explained it in my own words, it would help anyone who had the same misunderstanding I did.)
    It would look like this:
    <?php wp_get_linksbyname(''); ?>

  5. thepete
    Member
    Posted 4 years ago #

    <?php wp_get_linksbyname(''); ?> <--this doesn't pull up anything for me. Putting the link category name in there does, however, which is nice. The one thing that's weird is that I have to add the link category name in front of the tag--I could have sworn it would put the link category name up automatically, but I guess I'm mistaken. It's no big deal now. Thanks for this thread, though--it was a big help!

  6. marzar00
    Member
    Posted 4 years ago #

    I use:
    <?php wp_get_links(1); ?>
    It only displays the category selected in the () but the end result is as can be seen on my links page:
    http://www.marzar00.finditmax.com/links.php
    Regards
    Marzar

  7. thepete
    Member
    Posted 4 years ago #

    Cool--thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.