There are a few blogs I follow pretty closely, and one of them predictably is Brian Gardner’s (predictably because he’s behind Genesis and I’m a bit of a fan). A while back Brian put together a tutorial about making a social media icon menu – I took it on board, I like rolling my own… [Read More]
I’ve spent a large block of time recently working on a project for a new client, intent on proving just how slick it is to build sites from a really solid, clean, FAST platform (Genesis – affiliate link). BUT I found myself stuck on an issue with the front page development and realised just how much of a handicap it can be when you get so welded to a ‘way of doing things’ that you forget just what else is out there.
Here’s the problem.
The site needs a paginated, slideshow for the front page (ok, not much of a problem, every site on the Internet*, has one of those…) whose images link to a specific URL and in which you can include a heading and descriptive text.
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 you could use Gravity Forms (and a handy dandy plugin) to create Custom Post Type entries. In its simplest setting, you create a form on your page and map the form so that it creates the post entries that we can then display in an archive template which regurgitates the relevant data and displays it in a list. It seems like the kind of thing other people might be interested in doing as well… here’s how I pulled it off.
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
It wasn’t really a heat of the moment thing… All the way through WordCamp Gold Coast all I could think about was… we need a WordCamp in Sydney, it’s been way too long. And blow me down if there weren’t other people at #wcgold thinking the same thing.
So we talked about it over a couple of beers (as you do) and the idea kept getting more compelling so we came home from the conference and we read the instructions and muggins here filled out the form and applied.
So, now I can wear the WordCamp organiser badge… you know, if there were such a thing.
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 quietly the adding the icon bit is all my handiwork)
So now we get to play with some of the other cool functionality I used to extend the Wholesaler experience for both Sarah and the user.
4. Customising the Registration page to allow for custom fields.
I mentioned Gravity Forms in the previous post as an integral part of this process. Sarah was already using this plugin because it’s awesome and makes lovely, functional forms really easily. So I was stoked to find that the added functionality we needed was available as an add on and yes, I mentioned also that this add on is only available to users with a Developer license. (Seriously, it’s so totally worth it, as you’ll see below…)
So, I have a client doing some tidy business in handmade children’s clothes. I worked with her designer late last year to turn out her e-commerce website build on WP e-Commerce and it’s been humming along paying for itself reasonably well.
So Sarah, having got the day to day management of the online store running smoothly wants to add her wholesalers into the mix and offer them special pages for their eyes only and discounts on product throughout the whole store.
So where do you go to make that happen?
Before we begin the issues to address are –
Creating a Wholesaler User Role and managing how to give it particular privileges
Being able to offer wholesaler discounts on the cost of store items
Having a payment gateway for wholesalers that allows for deferred payment/COD
Customising the Registration for to allow for custom fields like store name and address
Customising the normal site login page with the Fabrik logo to create a more professional impression!
Creating a way of having content served specifically to wholesalers that isn’t available to ordinary shoppers
|I had a text chat yesterday with a local webhost. I was inquiring as to a client’s disk usage on their shared service because we were switching over from an existing Joomla site to a new WordPress one (heck yeah), and so I was touching base to make sure that the new WordPress install didn’t tip them over their limits (based on the existing site I knew it would be close).
I came away from the conversation irritated based on the following…(After the preliminary greetings and outline of my request…)
I’m making the mother of all web forms to create an online booking system for a client. Needless to say I’m using Gravity Forms* to build it, if for no other reason that it removes ALL the headache from creating forms… you just have to do the painstaking work of adding each field.