I was approached by a client recently who wanted a solution to display captured data on their website in the kind of way you'd need to do if you were creating an online petition and wanted to display signatories. In this case the client is creating a pledge form and simply wanted to create a page that lists the names of the pledgers, their age, city, state and country. I googled around to find a solution and in the course of all of that I discovered that we could use Gravity Forms to create … [Read more...]
Theme Template Helper
This is the tiniest, most useful blog post ever. This piece of code has made me look really intelligent more than once in the last few weeks, so it's only fair I share it... I call it Mother's little Theme Template Helper. If you're wanting to find out exactly which template the page you're looking at is being built from, paste this little piece of code in your functions file https://gist.github.com/thewebprincess/5668762 This will print the url of the appropriate template in the … [Read more...]
Easier Custom Post Types
I've been through the gamut of tutorials on creating custom post types for WordPress, and some of them are excellent, really excellent. But a while ago I came across some code, and for the life of me I can't remember where I got it (lesson learned to add the source to every code snippet I find), that makes building custom post types a lot easier... Instead of having to create each custom post type separately you just add a variable for each new post type and let the code do the rest. (and, just … [Read more...]
Creating a Wholesaler Role in WP e-Commerce – Part Two
I had hoped to get back to this yesterday (and the day before), but you know, life happens... and in fact we've added another function to the whole process so now you get the whole kit and caboodle (you're welcome). So, just to bring you up to date, Sarah, a client of mine wanted to add a whole bunch of wholesaler functions to her WP e-Commerce store so in Part One we covered some of the plugins required to allow for a new Wholesaler role in her Users list and the addition of functionality … [Read more...]
Making Simple Coming Soon and Under Construction work with Child Themes
It's quite possible that there are other maintenance and 'coming-soon' plugins out there that are more up to date, slicker and better than this one, but for whatever reason I've used Simple Coming Soon and Under Construction for a number of years. Unfortunately, in more recent times I have found it not performing to my liking in that while it would display a splash screen when it was in 'maintenance' mode it was never my custom one. As it happens this non-performance coincides with the advent … [Read more...]
Creating a Child Theme for WordPress
Part two of Tuesday's lightning talk revolved around the process of creating child a theme for WordPress. The benefit of child themes is that you're separating your changes to a theme you're modifying from the original; and if things go wrong with your code (as it is known to do from time to time) then you've always got the original as back up (but if you're smart you're keeping updated backups when you write new code anyway, right?? Yeah.. right). So creating a child theme is basically a … [Read more...]
Encourage Click Throughs with Facebook Album Image Teasers
I was hanging about on Facebook today, you know, as you do, and noticed a post in my news Feed from Air New Zealand. I was, of course, compelled to click through to see 'the bigger picture' - and very nice it is too! (go on, go have a look, I'll wait...) ... Neat, huh?? I figured it was a fun thing to try and very easy to do with the right tools... so I jumped into photoshop to make you a template so you can do the same! - here it is Click Through FB Image Gallery Template To use it, … [Read more...]