Blogroll Links
Blogroll Links is a WordPress plugin that displays your site’s link bookmarks (formerly called « blogroll ») within posts and pages using a simple shortcode.
For people who maintain their website or blog using the WordPress content management system, Blogroll Links uses WordPress’ built-in Links feature and presents links to friends’ pages, resources, and social networking profiles.
Features
- Display links by category using the category slug
- Customizable sorting (by name, URL, rating, or ID)
- Honors link visibility settings (show/hidden)
- Respects target window settings for each link
- Displays link descriptions and images if available
- Works with WordPress’ built-in Links Manager
- Supports XFN (XHTML Friends Network) relationship tags
- Full PHP 8+ compatibility
- Secure: Protected against SQL injection, XSS, and CSRF attacks
Usage
Add this shortcode to any post or page:
[blogroll-links categoryslug="my-links"]
Full Shortcode Options
[blogroll-links categoryslug="my-links" sortby="link_name" sortorder="asc"]
Parameters
categoryslug– The slug of the link category to display (required)sortby– Sort field: link_name, link_url, link_rating, link_id (default: link_name)sortorder– Sort direction: asc or desc (default: asc)
Examples
Display friends’ websites sorted by name: [blogroll-links categoryslug= »friends » sortby= »link_name » sortorder= »asc »]
Display resources sorted by rating (highest first): [blogroll-links categoryslug= »resources » sortby= »link_rating » sortorder= »desc »]
Display social media profiles: [blogroll-links categoryslug= »social-profiles »]
Live Examples
See this plugin in action:
- www.rajiv.com/friends/ – Social networking links with XFN tags
- www.rajiv.com/charity/ – Charitable organizations list
Credits
Thanks to Dave Grega and Adam E. Falk (xenograg) for their contributions to this code.
Version 3.0 was modernized using Synthesis Coding with Claude Code – a human-AI collaborative development approach.