Personalised WordPress framework

I’m sure if you are a WordPress theme developer, or work a lot around WordPress, you’ll have your own set of framework, a personalised framework, and only you understand it. Well, I do, in fact I have a few. Just so I can consistantly work around what needed and what not. The year end is near, have to spear time out for checking and paying term life insurance again. Also the time I check with my framework, lots of work, without pay :(

I always tried to make the framework work easier for me. This is my way:

Theme Options

Theme Options

Something just static, like adding Google Analytics code. It has become a numb in website. Even a web newbie knows that too, I don’t know why. So creating a theme options helps remove the time to copy-paste the code. You can find some tutorial around the net.

Shorten the name

Shorten name

Make sure it is easy to implement what you have on your theme options. Shorten the name, create another my_functions.php files and place all the reusable options there instead. So you can easily add when needed in any project.

Have as much as possible

Custom functions

Yes, built what needed and what don’t needed first. I have ALL WordPress core hooks ready in my functions.php. You can get a lot of custom functions from Digging into WordPress blog. I have a copy too :D

Keep backward compatibility ready

Though it is always recommended to upgrade WordPress when new version is out, but not everyone is comfortable with it. Some even still have 2.8 with them (how we missed the old layout). I always have 3 version of WordPress ready and make sure all developed themes work well with all 3 version, and yes, from time to time, I will forgot about browser compatibility.

Time to check with the upgrades :)

Need to stop hanging

First, it is end of the year, tasks are a little slower. So both of us are focusing really deep into our own projects, even though I did fail my previous one, but never mind, I have plenty of time for that.

Recently, I hang a lot at the new YouTube and the almighty 9gag.

9gag

Yes, I am that idiot to go there, but hey, it’s a way for me to support the creativity of the people around the globe. I learn the word “ordinateurs portables” and “Me Gusta” and all kind of language. Then I get to see how funny an incident was before I knew it. It’s just a good entertainment channel.

YouTube

As of YouTube, I think it has succeed in attracting people to watch more than the previous layout. Back then, it doesn’t support a quick subscribed channel, now it is much easier to change channel. Not only that, once I connected my Facebook and Google Plus, those who shared in the social sites are shown on my YouTube home page. It’s like, why wasting time checking updates from social sites.

Ok, back to brain storming.

WordPress for better future development

Working with WordPress is great, but it will be much greater if one can have it all files and folders organised nicely. I don’t always expect a returning client, so I always make sure what I’ve made is easy for the next guy. So organising my WordPress theme files and folders are what I always do.

Folder it

Folder
Make it clear what the folder is about and where to find it. Since I work a lot with responsive nowadays, so another styles/ folder is created. Everything in includes/ folder will be the extra functions and taxanomies.

Name all the functions

Function naming
This is very important for myself, I get to forget them from time to time. But it is always good to have them named, so we can better understand what it does. I find a lot of premium theme (though was named as “Developer” package) doesn’t name them.

Hide the not needed link

Remove link
There are lots of useless thing in WordPress admin panel. When was your last time using the “Links”? Or “Media”? I hide them when working on a project. Just so they don’t go “What is Links do?” and I will have to explain something that is never going to be used.

There you go. That is just my way of working around WordPress. Yeap, was rushing a work on a premium WordPress theme and didn’t take much time for rest, smoke frequent increased, caffeine added a lot more. Gosh, I need a rapid opiate detox soon if this keep going.