{"id":1011,"date":"2007-03-24T10:45:57","date_gmt":"2007-03-24T08:45:57","guid":{"rendered":"http:\/\/www.mummila.net\/nuudelisoppa\/index.php\/?p=1011"},"modified":"2007-03-24T10:45:57","modified_gmt":"2007-03-24T08:45:57","slug":"wordpress-21-wp_get_links-and-wp_list_bookmarks","status":"publish","type":"post","link":"https:\/\/mummila.net\/nuudelisoppa\/2007\/03\/24\/wordpress-21-wp_get_links-and-wp_list_bookmarks\/","title":{"rendered":"WordPress 2.1: wp_get_links and wp_list_bookmarks"},"content":{"rendered":"<blockquote><p>&#8220;The way Links used to work is that all links had a &#8220;before&#8221; and &#8220;after&#8221; bit associated with them. wp_get_links respected that, and if you had li and \/li in the Links manager for those links, then that&#8217;s what got output.<\/p>\n<p>But Links aren&#8217;t the same as they used to be anymore. So wp_get_links no longer works quite the same way. While it&#8217;s not actually deprecated, it probably should be since it just ends up using the new &#8220;bookmarks&#8221; functions anyway.<\/p>\n<p>I&#8217;d switch to <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/wp_list_bookmarks\">wp_list_bookmarks<\/a> to do what you need it to do.&#8221;<\/p>\n<p><a href=\"http:\/\/wordpress.org\/support\/topic\/102142#post-504463\" class=\"source\">Otto42@WP Support Forum<\/a><\/p><\/blockquote>\n<p>Took me a while to find out how to make wp_list_bookmarks work as wp_get_links did. Firstly, upgrading to 2.1 seems to change the link categories&#8217; ids, so they had to be looked up. In the end I came up with <code>wp_list_bookmarks(\"category=43&amp;categorize=0&amp;title_li=&amp;show_images=0\");<\/code> &#8211; the title_li bit was the most difficult to understand (my initial attempts with double single quotes caused only weird output).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;The way Links used to work is that all links had a &#8220;before&#8221; and &#8220;after&#8221; bit associated with them. wp_get_links respected that, and if you had li and \/li in the Links manager for those links, then that&#8217;s what got output. But Links aren&#8217;t the same as they used to be anymore. So wp_get_links no [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[9387,26],"class_list":["post-1011","post","type-post","status-publish","format-standard","hentry","tag-blog","tag-open-source"],"_links":{"self":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/1011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/comments?post=1011"}],"version-history":[{"count":0,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/posts\/1011\/revisions"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/media?parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/categories?post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/nuudelisoppa\/wp-json\/wp\/v2\/tags?post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}