TagWordPress

You Don’t Know WP_Query

If you think you know WP_Query, watch this talk by Andrew Nacin at WordCamp Portland 2011. Andrew digs through stuff like query_posts, wp_the_query, pre_get_posts and more. So if you’re still using query_posts without a good reason, Andy will convince you not to.
You can find the slides on SlideShare. Enjoy!

Order By Post Meta DATE in WP_Query

Sorting by post meta in WP_Query is quite easy with the orderby argument set to meta_value. If your meta value is a number, you can use meta_value_num, however, if you run into a situation where you have a date string, like 2012-06-15, both meta_value and meta_value_num won’t give you the desired results. Luckily, you can hook into the posts_orderby filter and do some custom SQL, like this:...

Hello, Jetpack Comments!

I always loved how commenting was over at WordPress.com, and the new Jetpack Comments brings all that fun stuff to WordPress.org blogs. Many of us have been waiting for this, and as announced by Tim Moore yesterday, Jetpack Comments are available as of version 1.4, along with some bug fixes. You should see an update available from your WordPress dashboard, and if you don’t, you can always...

Nacin and Westi on the Admin Menu Code

Without a doubt, the worst code in core exists in admin/menu.php, admin/includes/menu.php, and admin/menu-header.php
Andrew Nacin

And in reply to Andrew:

It’s not code, it’s bits that met and became bytes.
Peter Westwood

10 Things to Speed up WordPress

Ross Johnson talks about the importance of page load times in today’s world. CSS and JavaScript compression, clean HTML and compressed images, CSS sprites, page and object caching, content delivery networks and more. If your WordPress site is slow, watch this video for a handful of tips on how to make it faster.

WordPress 3.4 Hits the Shelves

WordPress 3.4 is here! Update your site now to try the new theme customizer, better headers, HTML captions & more: — WordPress (@WordPress) June 13, 2012 Better, faster, more secure, and shinier than ever before! You will be able to upgrade from within your WordPress dashboard in the next few hours. Keep an eye out on the download counter too, and if you’re a plugin or theme...

How to Remove the Publish Box from a Post Type

I’ve been working plugin, where a post type was meant to only be read from the admin panel, but never edited. Removing the capabilities to edit the post type is one piece of the puzzle, and actually hiding the publish box is another. Have you ever heard people say WordPress is written using its own APIs? Well this is a perfect example: add_action( 'add_meta_boxes'...

Best Practices for WordPress Theming

Great session from WordCamp Singapore by my friend and co-worker Philip Arthur Moore, who talks about essential things to WordPress theme development, including a set of awesome plugins that can help. You can find the slides on SlideShare.