Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator bcworkz

    (@bcworkz)

    Do you want these as your site’s nav menu? Or something that just looks similar? Since blogroll links are deprecated and remain mainly for reverse compatibility, I’m not hopeful of there being an existing plugin. You may need to custom code something. wp_list_bookmarks() can output links within ul/li elements organized by category. CSS similar to what nav menus use can cause the list to behave like a nav menu.

    Thread Starter anjanesh

    (@anjanesh)

    Something like this : https://indscicov.in – but I don’t want to manually add links in the Menu – there should be some sort of way to directly have the entire BlogRoll included in the Menu.

    Moderator bcworkz

    (@bcworkz)

    For a custom coded solution, you can use the ‘wp_nav_menu_items’ filter to add other menu items that are not permanently defined in the menu. You do need to maintain the correct structure when inserting more items. To develop a way to do that, add a few example items so the correct structure is evident. var_dump() the items passed to your filter callback and save the output for reference.

    Restore your normal default menu and var_dump() again to learn what you are working from. Get the blogroll links with get_bookmarks() and insert the HTML for returned links into the passed menu structure.

    Thread Starter anjanesh

    (@anjanesh)

    I was hoping for a plugin to be available to execute this task seamlessly.

    Moderator bcworkz

    (@bcworkz)

    Sure, that’s always the easier path. If anyone else can suggest anything they are more than welcome to do so.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Blogroll Links as a Menu tree’ is closed to new replies.