Category Archives: Code

13 May 12

SublimePhpTidy

SublimePhpTidy - Plugin for Sublime Text 2 to format PHP code to meet the WordPress Coding Standards using a modified version of phptidy

Leave a comment

5 Feb 12

Open-sourcing the Code Comments Trac plugin

At Automattic we love open-source software and try to make more of it. That's why today we are open-sourcing the Code Comments Trac plugin. We developed it to help us do better and quicker code rev...

Leave a comment

27 Jan 12

Re-Use Common Elements the Easy Way with WordPress’s get_template_part() Function | Wptuts+

Reusing code is one of the strengths of modern coding techniques. It simplifies your theme files and speeds up the development process by not having to constantly rewrite code.

Leave a comment

23 Jan 12

scribu/wp-phptidy – GitHub

wp-phptidy - Automatically format PHP code to meet the WordPress Coding Standards

Leave a comment

22 Jan 12

19 Jan 12

Implement a 404 image in your Theme – WP Engineer

Every good Theme comes with a 404.php for requests that don’t match any post or page. But what to do with missing images? They are requested per an <img> element usually, your visitors may never see the HTML template. Let’s use a 404 image. I put the following code on top ...

Leave a comment

18 Jan 12

WordPress Custom Post Type Code Generator | Themergency

Quickly and easily generate your WordPress custom post type code using this step-by-step wizard. You can then copy and paste the generated code into your functions.php. No coding knowledge required!

Leave a comment

13 Jan 12

Snippet :: jQuery Syntax Highlighter

Snippet is a simple, elegant jQuery solution to syntax highlighting.

Leave a comment

9 Jan 12

Custom CSS tweaks for Twenty Eleven on WordPress.com

I wanted to have my images and videos displayed much wider than by default in the Twenty Eleven theme, but only when viewing single entries (where there is no sidebar). Here are the few simple twea...

Leave a comment

6 Jan 12

WordPress Display user with the most comments with count, email, author url

Adding this snippet to the functions.php of your wordpress theme will let you display the top commenter list of users. Use $result-&gt;comment_author_

Leave a comment

Detect WordPress template file being used

This is a handy function which I tend to use from time to time when debugging my blogs, it outputs the name of the template file being used to display the current page.

Leave a comment