I Broke My WP

All the WordPress I learned by _doing_it_wrong()

  • wtf is this
  • Wordpress Design Agency Themes
  • Follow @ibrokemywp

Recent Posts

  • Try to not suck at JavaScript. Store selected DOM elements for re-use
  • Beware when injecting yourself into the loop
  • wp_star_rating(). Be lazy. Be very very lazy
  • register_post_type() cheatsheet from Justin Tadlock
  • Please please please please please turn WP_DEBUG on

Category / Uncategorized

April 14, 2015January 3, 2015 by Nate

DIRECTORY_SEPARATOR

  • Uncategorized

Learn how to not break things on other people’s OS’s. \o/ Continue reading →

April 7, 2015January 3, 2015 by Nate

Be a good neighbour and reset the loop

  • Uncategorized

You’re welcome to hijack the loop. But please put it back the way you found it. Continue reading →

March 31, 2015January 3, 2015 by Nate

esc_js

  • Uncategorized

This is a public service announcement. esc_js() exists. That is all.

March 24, 2015January 3, 2015 by Nate

Use variable hook names like your cool older brother WordPress does

  • Uncategorized

All those filter_{variable}_hooks provide a neat abstraction if you’re building an extensible product. Continue reading →

March 17, 2015January 3, 2015 by Nate

Load your fancy pants plugin or theme on a fresh install

  • Uncategorized

You probably forgot to check if an option isset() before relying on it. Continue reading →

March 10, 2015March 10, 2015 by Nate

Filter all the things

  • Uncategorized

Filters aren’t just for WP core. They’re for you too! Continue reading →

March 3, 2015January 3, 2015 by Nate

Get your theme mods from get_theme_mods()

  • Uncategorized

Don’t be daft and try to go directly to get_option( 'theme_mods_themeslug' ). Continue reading →

February 24, 2015January 3, 2015 by Nate

Don’t manhandle that query string

  • Uncategorized

?query=strings&are=fucking&annoying=sometimes. Don’t go parsing them yourself. Continue reading →

February 17, 2015January 3, 2015 by Nate

get_posts() doesn’t love you as much as you love it

  • Uncategorized
  • 2 Comments

get_posts() bypasses several filters that get hit when you call WP_Query. It also misses out on some performance enhancements. Continue reading →

February 10, 2015January 29, 2015 by Nate

Taxonomy descriptions are a real thing. Use them

  • Uncategorized
  • 1 Comment

Did you know that taxonomies have descriptions that can be displayed on their archive pages? Me neither. Continue reading →

Posts navigation

Older posts
Newer posts
Proudly powered by WordPress | Theme: editor by Array