Skip to content
Mr.Kapowski
Mr.Kapowski
  • Home
  • Archive
  • Links
  • Now
  • Projects
    • IndieWeb iOS Shortcuts
    • Saorsa
note
Chris M.
| January 16th, 2019

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.

Chris M.
est. 1983. He/Him/His. PGP: 8E57C48194665159
Subscribe to author feed
Categories
  • notes
Syndication Links
  • Home
  • Archive
  • Links
  • Now
  • Projects
    • IndieWeb iOS Shortcuts
    • Saorsa

Chris M.

    • githubGitHub icon
    • twitterTwitter icon
    • microblogMicro.blog icon
    • flickrFlickr icon
    • mastodon.xyzMastodon icon

    est. 1983. He/Him/His. PGP: 8E57C48194665159

    Indieweb Examples

    • IndieWeb Textpattern

    ⬅ An IndieWeb Webring 🕸💍 ➡

    ⬅ Hotline Webring ➡

    This site is powered by HTML and styled with the Autonomie theme