get_bookmarks returns wrong link_category
-
The links in my blogroll are partitioned into a couple of link categories. I’ve tried to use get_bookmarks() to get a list of all links in my blogroll together with the link category (which is the value I’m searching for).
$links = get_bookmarks(); foreach( $links as $link ) { if ( $link->link_url == $reference ) { $catFound = $link->link_category; break; } }However, the get_bookmarks function returns a list of all my links but the values in the link_category fields are not those, which I expected (I expected the IDs which are used by the link-manager (cat_id=#). Not only that, some links which are in different link categories (in the link manager) get the same ID in get_bookmarks and other links in the same link category get different categories.
WordPress Version 2.7
Is my expection that the link_category value from get_bookmarks should be the same as in the link manager wrong?
Ciao, Meph
The topic ‘get_bookmarks returns wrong link_category’ is closed to new replies.