12th Jun2012
Author: Gyro

Display Links Categories on WordPress using ShortCodes

While looking for the best way to do what the title says, I stumbled upon this great little function. All you need to do is add it to the current ThemeFunctions.php and then you can display any category anywhere in WordPress.


Usage:
Shortcode: [myblogroll] will display the category blogroll,
Shortcode: [myblogroll catslug="CategorySlug"] display only one category, where CategorySlug is the actual slug of the category.

Here is the code of the function: http://pastebin.com/wk0fFFzT

701

Keep Me Going
Your Name / Website:
Did you like my post? Buy me a Bitcoffee! 14JX52Li7zTKbyQv2omw4tvu6Bi1KzfHNW



Leave a Reply

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

What is 4 + 7 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)