Tel: (314) 266-9321
You are here: Home / Blog / Development Sandbox / WordPress / Media Library Shortcode WordPress Plugin
Published on June 9th, 2010 by Tanner Hobin and filed under WordPress
The Media Library Shortcode plugin allows you to use a shortcode to create a list of documents using the document’s corresponding ID. Example: [attachment id="1,2,3"]. The list of ID’s must be enclosed in quotes and comma separated. You can also sort documents by type and find document ID’s in the media library.
If you enjoyed this post, you may want to subscribe via RSS or share this content with a friend using one of the icons below.
You may also find these similarly tagged posts interesting:
WordPress, WordPress Plugins
@finid
Thanks for the comment. This plugin is developed specifically for media library items, so no, you couldn’t list posts in a category or a list of categories. However, if you can provide more detail about what you’re trying to do I would be more than happy to help.
Is it possible to list attachments of a certain type, e.g. [attachment type=PDF]? Or maybe use the “media-tags” attribute, i.e. [attachment media-tags="documents"]?
Also, @finid, what you want to do is possible with the WP Render Blogroll plugin.
Cheers,
-Hugh
@Hugh, great suggestion! I’m confident we could add the functionality you mentioned. This is a very small side project that unfortunately gets very little attention, so I can’t give you a time frame for completing the addition. You’re welcome to adjust the code as you see fit though.
I wanted to thank you again for your hard work on developing and launching the 2011 Painting and Decorating Expo website. This was the first Expo PDCA has done on our own in over five years. A good website was essential to the success of the event. Responses to our attendee survey have been very positive. The website was listed as one of the top resources used by attendees when deciding to attend.
— Adam P, Painting and Decorating Contractors of America
© 2004-2012 - Headway Marketing LLC - 851 Stone Canyon Dr., St. Louis, MO, 63021 - tel: (314) 266-9321
Will it be possible to use a short code to list all the posts in a category or a list of categories?