Reactivating the WordPress Links Manager

Following on from my last bookmark, it seems to be really simple to reactivate the built-in Links Manager for WordPress. Just add the following to your theme’s functions.php:

 * Re-enable the built-in Links manager
add_filter( 'pre_option_link_manager_enabled', '__return_true' );
// Add Shortcode
add_shortcode( 'links', 'wp_list_bookmarks' );

I haven’t checked to see if there are any “gotcha’s” with this, but it seems to work as expected. Once done, add the shortcode [[links]] to a page, passing in any parameters as per wp_list_bookmarks().

I’ve already added this to K.

Update 18/Jan/2019: After some further testing, the shortcode doesn’t actually work very well, so I don’t recommend you use that. I’ve switched my Links page to use a page template which calls wp_list_bookmarks() directly instead. The Links Manager still works, though I had some early issues with assigning categories… deleting them and starting over seemed to fix whatever internal taxonomy relationship was broken. I’m going to leave the Links Manager activation filter in K, but I’ve removed the shortcode.

0 Responses

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Have you published a response to this? Let me know the URL: