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:

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.

  1. Upload the blogroll-links folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure default settings under Settings > Blogroll Links
  4. Enable the Links Manager if hidden (see FAQ)

سوالات متداول

Where is the Links Manager?

WordPress hides the Links Manager by default in newer versions. To enable it, you have two options:

Option 1: Install the “Link Manager” plugin from WordPress.org.

Option 2: Add this code to your theme’s functions.php file:

add_filter( 'pre_option_link_manager_enabled', '__return_true' );

Why do I need this plugin? WordPress can display blogroll links in sidebars on its own.

This plugin extends WordPress’ links functionality by enabling you to show links within the content of your Posts and Pages, not just in sidebars. It takes full advantage of the WordPress links database and management tools.

Why are no links showing?
  1. Make sure the Links Manager is enabled (see above)
  2. Verify the category slug matches exactly (check in Links > Link Categories)
  3. Check that your links are not set to “hidden”
Is the legacy HTML comment syntax still supported?

Yes, for backward compatibility the old syntax still works:

<!--blogroll-links category-slug="my-links"--><!--/blogroll-links-->

However, we recommend using the shortcode syntax for new content.

Is this plugin compatible with PHP 8?

Yes! Version 3.0.0 has been fully updated for PHP 8+ compatibility.

Is this plugin secure?

Yes. Version 3.0.0 includes comprehensive security improvements:

  • SQL injection protection using prepared statements
  • XSS protection with proper output escaping
  • CSRF protection with nonce verification
  • Proper capability checks for admin functions
×
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
نسخه حجم فایل SHA256 تغییرات دانلود
3.0.0 69 کیلوبایت -
دانلود
×
بدون امتیاز

قیمت:

رایگان

نگارش

3.0.0

آخرین انتشار

21 اردیبهشت 1405

آخرین بروزرسانی

1 ماه پیش

نصب های فعال

300+

نگارش وردپرس

وردپرس 5.0+

تست شده از نسخه

وردپرس 6.7.5

نگارش PHP

PHP 7.4+

نسخه ها

1 نسخه