Our Blog
May 02, 2012
We recently developed a site for a client that allows visitors to submit their stories using a custom form. The stories then go into a queue to be reviewed for approval by an Administrator. One requirement was that these user’s be notified by email if their story was approved.
After not finding any plugins designed specifically to do this, I cooked up a little function that I thought I would share.
(more…)
April 13, 2012
Sometimes a WordPress project calls for custom fields on Media. We recently built a custom gallery widget that involved uploading multiple images that would have a caption, a heading, the ability to selectively output the image, and the ability to set the hex code color of the text that was output.
To achieve this, I created a custom field on images that would allow you to input a value to be used as the color for the text and a custom checkbox to indicate to output the image.
There are two steps to this:
- Add the custom field to the edit screen,
- Process that field when saving / updating the media item.
(more…)
March 27, 2012
Updated: 5/2/2012
We love developing in WordPress. For many of our clients, there is no need to reinvent the wheel and WordPress can be a significant time saver.
WordPress is a very thoroughly developed platform – yet every now and again we bump into desired functionality that isn’t readily available, such as excluding categories from the Archive Widget.
Recently, I developed some code to do just that and thought I would share it.
(more…)
March 23, 2012
Many of our clients show their personalities on their websites – from Facebook to Twitter feeds, photo streams and more, they like to integrate a bit of themselves. While hooking up a Social Media feed is no problem, recently we had a unique request to develop a widget that displays the most recently listened to Spotify track with artist information and album cover.
It turns out there isn’t a straightforward way to do this; after a little digging around on the internet, and the help of the Spotify API, we were able to put together a solution that I wanted to share.
There are several steps to this process:
- Create a Lastfm account and setup Spotify to scrobble to Last.fm
- Pull the Lastfm Recent Tracks RSS feed
- Look-up the desired Track using the Spotify Metadata API and load the data
(more…)
February 24, 2012
Updated: 5/14/2012
There are a lot of good membership plugins out there – we recently finished building a site for a client using WishList Member and ran into a problem when trying to determine if the logged-in user has access to a given piece of Pay-Per-Post content.
There are a couple of key features that made WL Member ideal for this project:
- It allows the purchase of content on either a per-post or subscription basis
- It blocks access to Private Media by using htaccess to route the requests through a PHP script
This project called for us to only output links to attachments if the logged-in user had access to the content, and to do so in list views after the Read More tag was output.
(more…)
January 18, 2012
Updated: 5/13/2012
I’ve helped our clients set up a lot of membership sites; one common request is that members are able to submit articles within WordPress.
Out-of-the-box WordPress can get you pretty far but commonly I run into two roadblocks with the default roles:
- The Contributor role doesn’t let Contributors see the Media Library
- The Author role lets Authors see everyone’s Media & Posts
While more often than not a plugin is the way to go for a full-on membership site, there’s a really quick fix that will let you assign users to the Author role and be able to hide other’s Media & Posts from them.
(more…)