ThemeSmith is a WordPress plugin that makes use of shortcodes. Once installed, ThemeSmith adds three new shortcodes (photos, videos & audio) that extends your WordPress site with rich & easy media functionality. Plugin by Foxinni

Documentation

Index

Introduction

ThemeSmith uses a very powerful functionality that comes included with WordPress. These are called shortcodes and can become a great tool for your publishing needs. Shortcodes are small pieces of text you add to your WordPress posts and pages that adds simple, or complex, functionality into your post.

The ThemeSmith plugin addes three unique and ground breaking shortcodes for WordPress for you to start using in a matter of seconds to enhance your theme, improving your content and taking care of the “heavy lifting” in terms of creating photo galleries, mp3 players, video players and video embedding.

Setup & Installation

Download the ThemeSmith plugin and transfer it to your server, into the /wp-content/plugins folder. Then activate it via your WordPress backend.

This plugin can also be downloaded via the WordPress backend, see how to here.

Adding Content

Uploading media such as Photo, Videos and Mp3 had been made very easy with the current WordPress backend. ThemeSmith shortcodes will add all the uploaded media in a “loop” fashion to the post content. For example: If you have uploaded 10 mp3’s to in your post… you only need to add one audio shortcode. The plugin will add all of them into the place of the shortcode.

Arranging your uploads is very simple once you understand attachment ordering using the orderby parameter. A popular default is just orderby=”date” and order=”ASC” to completely reverse to order. This can be set in the default setting so to avoid manual usage.

Photos

Once you have uploaded some photos/images into your WordPress post, you must decide where you want to display them. Enter the shortcode below into your post content, save and view the shortcode at work. All images that are uploaded will be resized by the WordPress image resizer. Ensure you have set them to your default WordPress media dimensions before starting any uploads.

Basic

[photos]

Photos, like all the other shortcodes, has default options that you can set up. In most cases you would not need to to use the advanced usage of the shortcode because you can set the global parameters. Here are the a list of all the available parameters that you can use for this shortcode.

Advanced

[photos order="DESC/ASC" columns="4" size="thumbnail/medium/large/full" source="thumbnail/medium/large/full" max="10" captions="on/off" orderby="date" id="1234" itemtag="dl" icontag="dt" captiontag="dd"]

Videos

The WordPress uploader will accept any video file format, but ThemeSmith can only play .flv format.

Basic

[videos]

This shortcode’s properties can be manually overridden with the following available parameters.

Advanced

[videos order="DESC/ASC" orderby="date" id="1234" width="200" height="120" link="on/off" poster="http://url-to-image.jpg" captions="on/off" repeat="none/always" volume="50" auto="true/false" skin="http://url-to-skin.swf"]

If you are hosting your videos on another service like YouTube or Vimeo, you can just attach the custom field with the embed code in to the short code via the “embed” parameter. Please note that most parameters will not work and will only output the referenced shortcode when using the embed parameter.

Embedding

[videos embed="custom_field_name"]

Audio

The WordPress uploader will accept any audio file format, but ThemeSmith can only play .mp3 format at this time.

Basic

[audio]

More available parameters.

Advanced

[audio order="DESC/ASC" orderby="date" id="1234" captions="on/off" link="on/off" width="200" height="200" repeat="none/always" volume="50" auto="true/false" skin="http://url-to-skin.swf" poster="http://url-to-image.jpg" ]

If there are any questions, please comment below.

Thanks

Published September 1st, 2009
  1. Roel 8 September 2009 at 6:19 am #

    Hi!

    I uploaded a new song on my WordPress site, but when I upload it on my site, the first time it played 2.07 min, then I refreshed the page, it played 3.17min and after that 2.57min or something. It didn’t play the whole song. What’s wrong?

    • Foxinni 8 September 2009 at 7:44 am #

      Hi Roel.

      Interesting error indeed. I will have to investigate and come back to you on this one. Perhaps try it with smaller songs and try verify that they were all correctly added to the server when you uploaded them. Thanks

      • Roel 8 September 2009 at 6:40 pm #

        I already tried it ha! It’s on your own website too btw!

      • Foxinni 14 September 2009 at 8:04 am #

        Hi. This bug has hopefully been fixed. Read more here

  2. Alex Ketch 10 September 2009 at 12:30 am #

    Hey, I was wondering if there was already a way, or if there’s a plan to get the caption to link to the file. i.e. let the caption of the mp3 player link to the file being played.

    Otherwise sir, you have created a killer plugin :)

    • Foxinni 10 September 2009 at 2:41 pm #

      Hey Alex,
      What you are asking for is very possible! I know that there is some built-in function on the Flash player to provide a download button, but it was not working at the time of production. Keep an eye out for the update soon.

    • Foxinni 14 September 2009 at 8:06 am #

      I’ve added the functionality for you in the new update. Read more here

  3. Johan Swarts 14 September 2009 at 3:20 pm #

    Baie cool plugin, tx!

  4. Jonathan 14 September 2009 at 7:42 pm #

    Thanks for the great plugin.

  5. Bryan 16 September 2009 at 7:51 pm #

    When using the photo gallery option there is trouble with the full view of the image. After I click on a thumbnail it brings up a full-sized image, but the header part of my theme is in front of the image. I am using the theme Arclite.

    • Foxinni 17 September 2009 at 1:55 pm #

      This is indeed a error on the part of he theme author by the sounds of it. Can you provide me a link to your website to I can look into a possible fix for you? Thanks

  6. Heather St. Marie 22 September 2009 at 4:40 am #

    Great plugin! Is there a way to use this hard-coded in a WordPress template? For instance, I have an intro MP3 I would like to place either in the front page footer or the sidebar of a website…

    • Foxinni 22 September 2009 at 11:13 am #

      Swell idea. Let me maul it over for a few days and I’ll get back to you on a solution.

      • Heather St. Marie 23 September 2009 at 3:05 pm #

        Thank you!

      • Alex Ketch 26 November 2009 at 2:35 am #

        Any update regarding this function? This is the only feature that stops me from using your otherwise flawless plugin! :)

        • Foxinni 21 February 2010 at 8:06 pm #

          Very very soon. Please follow us on twitter.com/themesmith for updates. Thanks

  7. Ziad Rizk 23 September 2009 at 1:45 pm #

    Hi-nice n simple plugin that works without much tinkering. Just wondering if
    1- we can create playlists so that songs continue to play one after the other in a list
    2- if there’s a way to make the song name appear next to the audio player instead of below it (takes too much space- please see http://www.ziadrizk.com – page=Music.
    3-if I can create multiple groups of songs on one page. For example, I want one group of songs under classical, another under dance. Right now, when I put the tag [audio] it will pick all that are attached to the page. The only thing I can think of is to create 2 sub-pages and group by page.
    Please advise
    Thank you!
    Ziad

    • Ziad Rizk 23 September 2009 at 1:50 pm #

      (ps- any player similar to myspace..?) thanks again

    • Foxinni 21 February 2010 at 7:54 pm #

      We are looking into the suggestions. Thanks

  8. Glenn Miller 5 October 2009 at 8:03 pm #

    I added a photo and the tag but nothing shows up. Is there something else I need to activate?

  9. Joseph 9 October 2009 at 6:52 pm #

    Awesome!
    I think perhaps including an align code part within the advanced code. I lengthened the player to fit within the padding of my page, but if it wished it smaller and centred then I’d be in a mess.
    Easy now looking back but I’m not that smart with computers being self-taught.
    Stuggling with the skins though, but thank you for the plugin.

  10. muhanned 10 October 2009 at 12:07 am #

    hi there
    for some strange reason the video or the audio dose not work with me i deactivated all plugins just to be sure but still , is there something im doing wrong ?? the photos are working tho

  11. muhanned 10 October 2009 at 12:11 am #

    check the link
    http://arts2art.com/new/?page_id=47

  12. Jonathan 12 October 2009 at 3:36 pm #

    It would be great if the title of the audio could be a link to wherever you specify. For instance, to the band’s home page.

    • Jonathan 12 October 2009 at 3:44 pm #

      Or better yet, make the caption a link. So for instance, if I make the caption http://www.myspace.com/myband – that’s where it would link. It seems like that’s the only way it would be able to work, where it converts the caption text into a URL.

  13. Luiz Claudio 4 November 2009 at 1:51 am #

    Hello

    How do I distribute the photos in different categories in different posts?

    Grateful.,

    • Foxinni 21 February 2010 at 8:09 pm #

      Luiz, what do you mean excactly?

  14. sherra 7 November 2009 at 4:38 am #

    Beginner question that I can’t seem to figure out. Installed plugin, think it’s exactly what I need for photo gallery. Love the formatting and how the thumbnails look! How do I format so I can click on a thumbnail and they come up in popup window and you can click through all the images? Do I need a 2nd plugin or what am I missing?

  15. sherra 7 November 2009 at 6:39 am #

    Figured out my problem and installed Slimbox2 so it’s now working. Is there any way to create a link for each title/caption on thumbnail? Love how everything looks if I could just link the titles! (I see people asked about it for audio and video – I would love it for the photos.) Thanks for great plugin!

  16. Adrienne 3 December 2009 at 8:43 pm #

    Hi, I love this plug in! I am probably just doing this wrong, but on my blog I have 4 posts showing on the main page. The first 2 posts have photo galleries and they are linked so that when you click on a photo in the first post, you can continue clicking through the photos, through to the second post. I would like to keep these separate so you only see the photos associated with the post you are reading. Is this just the way I’m coding it? Thanks!

  17. Bert 12 December 2009 at 10:17 pm #

    Hi,

    I am trying to figure out something as simple as adding a “margin-right” so that when the images are display, they aren’t right next to each other.

    I have tried editing the themesmith.css but it only seems to be applied if existing values are changed. It never applies the margin-right.

    What am I missing?

    Thanks!

    • Bert 12 December 2009 at 10:32 pm #

      Nevermind… I figured it out. I was editing .themesmith-photos img instead of .themesmith-photos .themesmith-photos-item.

      Great plugin! It would be cool if there was a way to edit the margin in the admin setup.

      Thanks!

  18. andrie 20 December 2009 at 8:04 pm #

    Currently using 2.9, tried uploading few photos to a post, then use themesmith to view the photos inside the post itself pointing ID to itself. It does not work. Any idea what I’ve done wrong?

    • Foxinni 21 February 2010 at 7:51 pm #

      Andrie, it should still work. Make sure you have the correct syntax as per the documentation. I will look into it further.

  19. Chris Loringer 9 February 2010 at 11:29 pm #

    Can I get rid of the title in the light box? I just want to display the image and no information. I tried to play around with it but had a massive syntax error! Thanks in advance for any help!

    • Foxinni 21 February 2010 at 7:48 pm #

      You can try edit the Lightbox javascript file. Otherwise you will have to wait fro the next update. Thanks

  20. Chris 18 February 2010 at 5:07 pm #

    Can I make the thumbnail size smaller?

    • Foxinni 21 February 2010 at 7:43 pm #

      Chris, you can resize thumbnails by setting their size in the wordpress backend under Settings > Media. This will only work for thumbnails uploaded AFTER the you have changed the setting.


Leave a Comment

PHVsPjxsaT48c3Ryb25nPndvb19hdXRvX2ltZzwvc3Ryb25nPiAtIGZhbHNlPC9saT48bGk+PHN0cm9uZz53b29fY3VzdG9tX2Nzczwvc3Ryb25nPiAtIDwvbGk+PGxpPjxzdHJvbmc+d29vX2N1c3RvbV9mYXZpY29uPC9zdHJvbmc+IC0gaHR0cDovL3RoZW1lc21pdGguY29tL3dwLWNvbnRlbnQvd29vX3VwbG9hZHMvMy10aGVtZXNtaXRoX2xvZ28uaWNvPC9saT48bGk+PHN0cm9uZz53b29fZmVlZGJ1cm5lcl91cmw8L3N0cm9uZz4gLSA8L2xpPjxsaT48c3Ryb25nPndvb19nb29nbGVfYW5hbHl0aWNzPC9zdHJvbmc+IC0gPC9saT48bGk+PHN0cm9uZz53b29faGVhZGVyX21lc3NhZ2U8L3N0cm9uZz4gLSA8c3Ryb25nPlRoZW1lU21pdGg8L3N0cm9uZz4gaXMgYSBXb3JkUHJlc3MgcGx1Z2luIHRoYXQgbWFrZXMgdXNlIG9mIHNob3J0Y29kZXMuIE9uY2UgaW5zdGFsbGVkLCBUaGVtZVNtaXRoIGFkZHMgPHN0cm9uZz50aHJlZSBuZXcgc2hvcnR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