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
[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.
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
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),
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:
What displays is inverted:
Any idea what is going on?
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:
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.
Comments are closed, but trackbacks and pingbacks are open.