WordPress.org

Support

Support » How-To and Troubleshooting » Display only one link category in sidebar

Display only one link category in sidebar

  • Hi.

    I currently have five different categories for my links. I have since created a links page, and want only one category to display on my sidebar. Is this possible? If so, how?

    Any help is much appreciated.

    Thanks!

    Hilary

Viewing 7 replies - 1 through 7 (of 7 total)
  • <?php wp_get_links(1); ?> Where the 1 is the link category ID#.

    Edit: I originally misread your post, so had conflicting information. You would use this code where ever it is you want your link category listed.
    So

    Okay, thanks. Exactly where am I doing this though?

    this is pretty much what I’ve been looking for since http://wordpress.org/support/topic/73154?replies=11#post-382030

    You would do it under sidebar.php i believe

    Also, is there a way to include more than one?
    <?php wp_get_links(1,2); ?> perhaps? Also where can you find cateogry ID

    To find your link cat ID, you go to Links, Link Categories, then you’ll see all of your link categories, with the ID listed right after the name of the link.

    Hilary, if this is for your superjux site, then where it says blogs I read, you would replace the code with what I listed.

    Just post back if you run into problems.

    So I just put it directly in my sidebar then?

    Awesome. Thanks, I’ll give it a try tomorrow!

    Okay, tried it. Unfortunately it didn’t work. It just renamed each link category to the same name.

    Any other ideas?

    Thanks!

    Okay nevermind, got it to work. Now I want to list each link category on a links page. I currently have them in a dropdown, but I don’t really like it that way. I want it to look similar to my archives page. Any ideas?

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display only one link category in sidebar’ is closed to new replies.