WordPress CMS modifications

Making WordPress more like a CMS everyday!





Template Development

The template system of WordPress is the most important area to understand as it allows complete control of the look, layout and navigation of your website.

Inserting an auto-updaing copyright year

16 April, 2009 (18:15) | Template Development | By: Jonny

Most people want a copyright statement at the bottom of their website, and this usually includes the year. It makes sense to create this dynamically, rather than have to update it each year!

This is something I had to do the other day, and I pretty much put it on every WordPress theme I design.

Simply insert this code where you want the copyright notice to appear:

<p>Content is copyright &copy; 2008-<?php echo date('Y'); ?> YOUR NAME HERE</p>

Inserting WordPress shortcode outside the loop in a template

11 March, 2009 (14:05) | Template Development | By: Jonny

Shortcodes were properly introduced back in WordPress 2.5 - they are usually used in the post content area for doing all sorts of cool things, both with core code and plugins… but what if you need to call a shortcode OUTSIDE of a post (loop) in your template?

Read more »

Great info on updating plugins and themes for WordPress 2.7

17 December, 2008 (01:52) | Template Development, WordPress Plugin Development | By: Jonny

I’ve just found some really good information for WordPress plugin and theme developers on the WordPress Codex - looks like essential reading!

Read more »

WordPress themes get new home

25 July, 2008 (17:23) | Template Development, WordPress News | By: Jonny

A new official WordPress theme website has been launched, which is based on the same format as the WordPress plugins repository. This is great news for WordPress theme developers as it provides a proper central resource for hosting downloads and responding to feedback.

Where it differs from the plugin repository is that they have streamlined the upload process for authors - so you don’t have to worry about Subversion (to quote the announcement post ‘our back end magic takes care of all that for you’ - good work guys! Automated checks are carried out when you upload the theme in a zip file, with error reporting - nice!

This also means that users don’t have to worry about nasty adware and links when using these themes - if they stick to the official WordPress theme repository they should avoid these potential problems.

Read more »

Dynamically generating the file path to the template directory

18 April, 2008 (22:14) | Template Development | By: Jonny

When you start getting deeper into WordPress theme development, you will often have to reference images, includes and other files. To keep things tidy, you should keep all of these in the template folder. Then you can move your theme around different blogs and websites and all the paths will work.

Read more »

Creating a page template

10 October, 2007 (15:20) | Template Development | By: Jonny

It’s easy to generate your own custom pages and include any code you wish. Once created, you select which page template to use in the write/edit page sidebar.

Read more »