Blog Archives

Use _n to write a phrase in single or plural form

If you would want to write a phrase in single or plural form depending on a number, there is a very handy function for it written in WordPress called _n. The function also takes a $domain argument which can be handy when

Tagged with: , , , , ,
Posted in Best Practices, Intermediate

WordPress Coding Standards

In a collaborative programming environment it is always good to have a set of coding standards that you follow. Thankfully, WordPress have coding standards which all developers should try to follow. If you peek at the WordPress source you will

Tagged with: , ,
Posted in Best Practices, Intermediate

Custom Post Type Best Practices

I have used Custom Post Types in almost every WordPress project I have worked on since the feature was introduced in WordPress 3.0. When collaborating with other developers you also come across some common mistakes, mistakes that I’ve also made

Tagged with: , , ,
Posted in Best Practices

Set WP_DEBUG to true during development

During development WordPress provides you with another error reporting tool apart from the normal PHP errors and warning. Edit your wp-config.php file and find the row where WP_DEBUG is defined and set it to true. This will make your site

Tagged with: , , ,
Posted in Best Practices, Intermediate

Never use PHP short tags for WordPress development

Today while working on a project where we had collaborated with freelance developers I noticed that some pages weren’t looking as they should. A quick glance at the code revealed that the developer was using “short tags” to include the

Tagged with: , ,
Posted in Best Practices, Misc

Use WordPress functions to include your CSS

When I’m not developing for WordPress, I try to use a specific folder structure for my project. I have all my .css-files in the /css/-folder, all JavaScript in /js/-folder and so forth. I tried to keep this up for WordPress,

Tagged with: ,
Posted in Beginner, Best Practices

Use an empty action attribute in forms

When developing a simple form to use in your WordPress theme or plugin you often want to post to the same page. To do so, simply leave the action attribute empty in your form. Notice that your_name is used, using

Tagged with: ,
Posted in Best Practices, Intermediate

WordPress Quick Tips is a blog supplying great tips about WordPress.

We hope to create a great knowledge resource for WordPress developers as well as serving a reminder for all the forgetful ones.

The blog is created and run by Vincent of Oakwood Creative

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 121 other followers