Title: wp_get_bookmarks help
Last modified: August 19, 2016

---

# wp_get_bookmarks help

 *  [wyclef](https://wordpress.org/support/users/wyclef/)
 * (@wyclef)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wp_get_bookmarks-help/)
 * how can i get links and category titles from the link manager but have the category
   title in a dt and the links in a dd? I’ve tried this but it doesn’t work…
 * `<?php wp_list_bookmarks('categorize=0&amp;category_name&amp;category_before=
   <dt>&amp;category_after=</dt>&amp;=links&amp;before=<dd> &amp;after=</dd>&amp;
   show_description=0&amp;orderby=url'); ?>`

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wp_get_bookmarks-help/#post-1051754)
 * [http://codex.wordpress.org/Template_Tags/get_bookmarks](http://codex.wordpress.org/Template_Tags/get_bookmarks)
 *  Thread Starter [wyclef](https://wordpress.org/support/users/wyclef/)
 * (@wyclef)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wp_get_bookmarks-help/#post-1051782)
 * get bookmarks seems a lot more complex than list bookmarks? is that the only 
   way to go about removing the ul and li tags?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/wp_get_bookmarks-help/#post-1051876)
 * You could run PHP’s `strip_tags(`) on wp_list_bookmarks but inserting your own
   markup in the right place would then be difficult. Another option would be to
   use `str_replace()` and substitute each existing piece of markup with your preferred
   markup but it would take a couple of passes unless you’re pretty handy with `
   preg_replace()`.
 * Personally, I’d used `get_bookmarks` and then loop through the array to create
   my own output string but each to his/her own, I suppose. 🙂

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

The topic ‘wp_get_bookmarks help’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/wp_get_bookmarks-help/#post-1051876)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
