Bookmarks Shortcode

Before WordPress 3.5, there was a feature that allowed you to create and manage a set of links from your admin dashboard. To display them on your site, you needed to rely on a template that might or might not be included in your theme.

Bookmarks Shortcode provides a set of three shortcodes [bookmarks], [links], and [blogroll] that you can use in any post, page, or text widget to output a formatted list of your links. This is much more versatile than any template included in a theme as it allows you to place content around the list and remains consistent if you decide to switch or upgrade your theme.

You can read more about Bookmarks Shortcode and download it from WordPress.org. It still works on WordPress 3.5 or later, but you need this plugin to enable the links manager. And, as always, Bookmarks Shortcode has its own GitHub repository where you can browse the code, fork and contribute to it.

6 Comments


  1. tushar

    is it possible to show the list in different page as per category. Like there are 2 categories for all the links i added. I want to display those links in 2 different page through shortcode

    Reply

    1. Yes. You can use [bookmarks category_name="Category 1"] on the first page (replace Category 1 with the first category name), and [bookmarks category_name="Category 2"] on the second page (replace Category 2 with the second category name),

      Reply

  2. When I use the shortcode in a page with other content, it forces the bookmarks list to the top of the content even though the shortcode is listed last. I want the list to be the last thing displayed, not the first thing under the title. In the dashboard, I have the content area set up with:

    Intro
    H3
    Blogroll list

    What displays is inverted:

    Blogroll list
    H3
    Intro

    Any idea what is going on?

    Reply

    1. This used to be an issue, but it should have been fixed in version 2.0. Are you on the latest version?

      The other thing to try is to make sure that the shortcode is on its own line, such as:

      before shortcode content
      
      [bookmarks]
      
      after shortcode content
      
      Reply

  3. Thanks for the quick reply. I’m running version 2.2 and each of the items is on its own line. Even tried inserting a “clear: both” div and it didn’t help.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>