Title: get_bookmarks problem
Last modified: August 19, 2016

---

# get_bookmarks problem

 *  Resolved [breger](https://wordpress.org/support/users/breger/)
 * (@breger)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/get_bookmarks-problem/)
 * I am trying to upgrade my template tags on The Airdrie Page to replace depreciated
   tags for get_linksbyname and have tried to replace the following code
 *     ```
       <?php get_linksbyname('Airdrie Cat Links', '', '', '', FALSE, 'rating', FALSE, FALSE); ?>
       <ul><li id="links"><h2>Airdrie United</h2>
       <li><?php get_linksbyname('Airdrie United', '', '', '', FALSE, 'rating', FALSE, FALSE); ?></li>
       </ul>
       <ul><li id="otherlinks"><h2>Other Links</h2>
       <li><?php get_linksbyname('Other Links', '', '', '', FALSE, 'rating', FALSE, FALSE); ?></li>
       </ul>
       ```
   
 * with this
 *     ```
       <?php get_bookmarks('category_name=Airdrie Cat Links'); ?>
       <ul><li id="links"><h2>Airdrie United</h2>
       <li><?php get_bookmarks('category_name=Airdrie United'); ?></li>
       </ul>
       <ul><li id="otherlinks"><h2>Other Links</h2>
       <li><?php get_bookmarks('category_name=Other Links'); ?></li>
       ```
   
 * I cannot get it to replicate what it shows on my homepage ([http://www.airdrie.net/weblog2](http://www.airdrie.net/weblog2))

Viewing 1 replies (of 1 total)

 *  Thread Starter [breger](https://wordpress.org/support/users/breger/)
 * (@breger)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/get_bookmarks-problem/#post-704556)
 * Managed to work this out eventually. If anyone needs a solution then just replace
   the above code with –
 *     ```
       <?php wp_list_bookmarks('categorize=0&category_name=Airdrie Cat Links&title_li='); ?></ul>
       <ul><li id="links"><h2>Airdrie United</h2></li>
          <?php wp_list_bookmarks('categorize=0&category_name=Airdrie United&title_li='); ?></ul>
       <ul><li id="otherlinks"><h2>Other Links</h2></li><?php wp_list_bookmarks('categorize=0&category_name=Other Links&title_li='); ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘get_bookmarks problem’ is closed to new replies.

## Tags

 * [get_bookmarks](https://wordpress.org/support/topic-tag/get_bookmarks/)
 * [get_linksbyname](https://wordpress.org/support/topic-tag/get_linksbyname/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [breger](https://wordpress.org/support/users/breger/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/get_bookmarks-problem/#post-704556)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
