Tech: Variable names in WordPress (or why you should never use $category as a variable name)

Make sure your variable names are prefixed or otherwise clearly part of your code. If you use generic variable names like $post and $category and $template you’ll run into conflicts with WordPress global variables.

Cross-posted from edinburghwp.com