Category Archives: Tutorials

How-to’s, tips, thoughts and experiences I’ve learned and had. Be they code related or life in general… mostly code related though.

More tips for styling the WordPress tinyMCE editor

A few weeks ago, I blogged about styl­ing the tinyMCE editor in WordPress to resemble your WordPress theme’s con­tent area. On this post, I received a com­ment from LA, ask­ing if it’s pos­sible to style the tinyMCE editor for spe­cific posts or post tem­plates. Folks, it’s WordPress… anything’s pos­sible! With my mis­sion at hand, I set to work. I’d […]

Styling the tinyMCE editor in WordPress

With WordPress’ easy to use nature and user inter­face, con­tent man­age­ment of web­sites is access­ible to a vast range of users, from the Bill Gates’ of the world right through to users who dis­covered this “inter­net thing” just yes­ter­day. Once the con­cepts of “what is a con­tent man­age­ment sys­tem?” and “Okay, so this is the ‘backend’ and […]

Enhancing the comments list in WordPress

With the intro­duc­tion of the wp_​​list_​​comments() func­tion, WordPress enabled users to eas­ily list com­ments on the web­sites without hav­ing to manu­ally run a series of loops and quer­ies to get the com­ments into neat XHTML. This func­tion out­puts default code with a selec­tion of options for how this code is struc­tured. Today we’ll be cus­tom­ising how comments […]

Storing a Twitter username with comments in WordPress

We’ve all seen this before when com­ment­ing on a blog post we’ve just read. The stand­ard com­ment form on a WordPress-​​​​driven web­site asks for a user’s name, email address (not pub­lished), web­site address and their com­ment. What if we could get some other inform­a­tion from the user*, and later integ­rate that into their com­ment? Why not get their […]

Theming for Magento — Part 04 — How it all works

Wow, part 4 already? This is where the real fun comes in, folks. Today we’ll be open­ing up some *.phtml and *.xml files, look­ing at what’s going on under the hood and find­ing out how the theme files all tie together. Lets get star­ted, shall we? Before we get to those files… Folks, before we dive into the […]

Javascript and WordPress — The Definitive Guide

Using cus­tom Javascript code in a WordPress theme or plu­gin is, in many cases, a given. Fortunately, WordPress comes bundled with a selec­tion of pop­u­lar Javascript lib­rar­ies (jQuery, Prototype and oth­ers) for use with your plu­gins and themes. Many users, how­ever, simply write the ‘<script>‘ tags in the header.php file of their theme or as part of a function […]

A few guidelines for WordPress plugin development

The WordPress plu­gin API is vast and power­ful. It allows developers to essen­tially hook code into almost any area of the WordPress sys­tem without modi­fy­ing the core files at all. It also allows for the cre­ation of stan­dalone plu­gins that work within the WordPress sys­tem but do not hook into the core mod­ules. Over the […]

Getting the information of a root page in WordPress

Often, when using WordPress as a con­tent man­age­ment or blog­ging tool on a web­site, one uses a multi-​​​​level page struc­ture. This entails a page being lis­ted “under­neath” another page in a tree struc­ture. Usually, if your WordPress installation’s permalinks devi­ate from the default set­ting, your page URL struc­ture will look some­thing like this: http://websiteurl.com/parentpageslug/subpageslug (Note: note a real URL) What if you […]