Title: Altering links.php?
Last modified: February 7, 2017

---

# Altering links.php?

 *  [maybeithink2much](https://wordpress.org/support/users/maybeithink2much/)
 * (@maybeithink2much)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/altering-links-php/)
    -  <?php get_links_list(); ?>
 * 
    produces:
    -  <li id="blogging">Blogging
 *  - Scriptygoddess
    - WordPress
 *  <li id="politics">Politics
    - Dean's World
    - Tempus Fugit
 *  I’d like to set the categories apart without affecting the links below it. For
   example:
    -  <li id="blogging"><span class="category">Blogging</span>
 *  - Scriptygoddess
    - WordPress
 *  <li id="politics"><span class="category">Politics</span>
    - Dean's World
    - Tempus Fugit
 * 
    Am I correct in assuming that the only way to accomplish this is by altering
   wp-includes/links.php?

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/altering-links-php/#post-75997)
 * You could just call each part of the link list by name.
    You’ll need to edit 
   index.php to do this, but it does give greater flexibility. <?php wp_get_linksbyname(‘
   category’); ?> [http://wiki.wordpress.org/wp_get_linksbyname](http://wiki.wordpress.org/wp_get_linksbyname)
   You can also style each part separately too: [http://www.mfr.f2s.com/1css/](http://www.mfr.f2s.com/1css/)
 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/altering-links-php/#post-76000)
 * Well yes and no. Category separation and styling can be done using css only.
 *  Thread Starter [maybeithink2much](https://wordpress.org/support/users/maybeithink2much/)
 * (@maybeithink2much)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/altering-links-php/#post-76005)
 * Root,
    Are you answering my question with yes, and podz’s comment with no? I’m
   unclear.
 *  [americandaughter](https://wordpress.org/support/users/americandaughter/)
 * (@americandaughter)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/altering-links-php/#post-76841)
 * Re: <?php wp_get_linksbyname(‘category’); ?>
 * I just applied this, and I didn’t have to alter index.php
 * I used the page links.php and made several copies, one for each category.
 * So I can open a page of links in each category. This is useful because I have
   a news magazine, and wanted a list of sources — American papers, international
   papers, magazines, etc. Now instead of using text pages for that, I can use the
   links manager.

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

The topic ‘Altering links.php?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 4 participants
 * Last reply from: [americandaughter](https://wordpress.org/support/users/americandaughter/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/altering-links-php/#post-76841)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
