WP Blogroll Links

This WordPress plugin outputs your Blogroll links to a Page or Post. Add [wp-blogroll] to a Page or Post and all your WordPress links/Blogrolls will be rendered. This extremely simple plug-in enables you to create your own Links page without having to write a custom template.

The output can easily be styled with CSS. Each category with its links is encapsulated in a DIV with a classname called “linkcat”. All the links are attributed with the class “brlink”.

WP Render Blogroll Links works using a “shortcode”. Shortcodes are snippets of pseudo code that are placed in blog posts, pages and on some forums to easily render HTML output.

The following is the basic form of a shortcode:

[shortcodename]

To facilitate customization of shortcodes, parameters are used. Shortcode parameters are entered in the following format:

[shortcodename parametername=parametervalue]

The “wp-blogroll” shortcode including an example parameter called “catname” looks like this:

[wp-blogroll catname=News]

Below is a list of all the supported parameters and their functions.

Parameter nameParameter optionsDescription
always_show_names0 or 1 (Default:0)This option when set to 1 will show link titles even if the link has an image defined.
catidID(s)Use this parameter to specify what categories should be shown by category ID. For example [wp-blogroll catid=12]
catnameName(s)Use this parameter to specify what categories should be shown by name. For example [wp-blogroll catname=News]. If the catname has spaces, simply wrap the name in quotes. Example: [wp-blogroll catname="Social Media"]
catorderASC, DESC (Default: ASC)Indicates the category sort direction in ascending or descending.
catorderbyid, name, count, slug or term_group (Default:name)This indicates in what order the categories should be ordered by.
excludecatID of a link categoryThis will exclude the set categories from displaying their links. Multiple values may be entered separated by comma (,). Example: [wp-blogroll excludecat=34,35]
forcerelRelationship (Default:blank)Forces a relationship tag on all links. For example rel=”external” can be achieved using [wp-blogroll forcerel=external]
limitnLimits the number of links displayed per category. For example, to show a maximum of 20 links per category, use [wp-blogroll limit=20]
notitle0 or 1 (Default:0)This removes categorization and as a result removes the category titles
orderASC, DESC (Default: DESC)Indicates the link sort direction in ascending or descending.
orderbyid, url, name, target, description, owner, rating, updated, rel, notes, rss, length, randThis indicates in what order the links displayed should be ordered by.
rss_imageRelative path. Default is ‘/wp-includes/images/rss.png’A relative path the icon that is to be used as RSS link for links. For example: /wp-includes/images/wlw/wp-icon.png
show_images0 or 1 (Default:1)By default links that have images defined will display them. To disable this, select 0 as the value.
show_names_under_images0 or 1 (Default:0)In combination with the always_show_names parameter, this option puts the titles of the links with images, under their images by adding a BR tag.
show_rss0 or 1 (Default:0)Indicates whether links that have RSS feeds associated with them should show them.
showdash0 or 1 (Default:0)This indicate you want a dash ( – ) between the link and its description. (This will also add a space before and after the dash.)
showbrk0 or 1 (Default:0)This indicate you want a line break between the link and its description.
showcatdesc0 or 1 (Default:0)Use this parameter to show the description set for each category.
showdesc0 or 1 (Default:0)Use this parameter to show the description set for each link.
showhide0 or 1 (Default:0)Indicates whether the links should remain hidden until the category is clicked on.

To get your desired result, you are also free to use (almost) any combination of the parameters.

Example:

[wp-blogroll limit=2 orderby=name order=ASC excludecat=4,5]

You can support the author’s work with a donation:

All proceeds go to Tanin’s DSLR Camera Foundation help keep this website online.