WP 2.1 – get_bookmark() doesn’t work in theme code
-
For a bespoke theme (for my personal site), I want access the link (aka bookmark) data using the “get_bookmark()” function.
I get the following error:
Fatal error: Call to undefined function wp_get_link_cats() in .../wp-includes/bookmark.php on line 7
From searching through the core wp code, wp_get_link_cats() is only available via the admin.
Will this be available to the front-end? i.e. plugins and themes?
My current workaround is to use the get_bookmarks() function… which is working well, but I’d prefer a single object rather than array collection of an object.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘WP 2.1 – get_bookmark() doesn’t work in theme code’ is closed to new replies.