Title: adding to sidebar
Last modified: August 18, 2016

---

# adding to sidebar

 *  [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * (@tjinh200)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/)
 * yet another sidebar question…
 * in my theme, all my links, regardless of category are placed under the title “
   Links” … how can i make them separate and show another category?
 * current code:
    ` <div class="title"><?php _e('Links'); ?></div> <?php get_links('-
   1', '', '<br />', '<br />', 0, 'name', 0, 0, -1, 0); ?>

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Thread Starter [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * (@tjinh200)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155294)
 * any ideas?
 *  [tahongawaka](https://wordpress.org/support/users/tahongawaka/)
 * (@tahongawaka)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155345)
 * Try changing `get_links('-1'...)` to `get_links_(-1...)` to see if anything changes.
   The first parameter should be an integer, not a string.
 *  Thread Starter [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * (@tjinh200)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155347)
 * i’ve changed it, and i’m still getting only one category: “Links” … not any others…
 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155352)
 * Try using wp_get_links instead. Alternatively, I use wp_get_linksbyname(‘category
   name’) and call each cat separately.
 *  Thread Starter [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * (@tjinh200)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155354)
 * could i use the following code for that?:
 * <div class="title"><?php _e('Links'); ?></div>
    <?php wp_get_links('-1', '', '','',
   0, 'name', 0, 0, -1, 0); ?>
 * or
 * <div class="title"><?php _e('Links'); ?></div>
    <?php wp_get_linksbyname('General');?
   >
 * or something along those lines perhaps?
 *  Thread Starter [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * (@tjinh200)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155355)
 * also, wp_get_links isn’t working for me …
 *  [iand](https://wordpress.org/support/users/iand/)
 * (@iand)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155357)
 * Extract from my sidebar:
    ` <div class="content"> <?php _e('Daily:'); ?> <ul>
   <?php wp_get_linksbyname('Daily'); ?> </ul>  I would guess that your second suggestion
   should work.
 *  [tahongawaka](https://wordpress.org/support/users/tahongawaka/)
 * (@tahongawaka)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155358)
 * Just for shits & giggles, change your `get_links` line to `get_links()`, without
   any parameters. See if anything changes.
 *  Thread Starter [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * (@tjinh200)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155364)
 * well, apparently my theme won’t accept the “wp” part of the get_links tag, so
   i deleted that part and i can seemingly make it work, thanks for the “link by
   name” suggestion, definitely helpful…is there a place to find descriptions of
   the parameters set in the get_links tag?
 *  Thread Starter [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * (@tjinh200)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155370)
 * oops, i could probably see that in Links > Link Categories huh? 😉

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘adding to sidebar’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [tjinh200](https://wordpress.org/support/users/tjinh200/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/adding-to-sidebar-2/#post-155370)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
