Skip to content

Dave Fitch

tools, technology, work

  • Home
  • work with me
  • contact me
  • tools
  • tech
  • photos
  • mtb
  • reviews

Tag: functions

Posted on October 29, 2016

Tech: Removing page, post, tag, category, and taxonomy IDs from the body_class in WordPress

Here’s a filter you can use to convince WordPress to remove CSS classes for tags, categories, pages, posts and taxonomies.

Cross-posted from edinburghwp.com

Posted on May 6, 2013

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

Recent Posts

  • MTB: Snowy sunset in the fields
  • MTB: Sunset view from the top
  • MTB: Stormy winter snowy skies
  • MTB: Snowy sunset
  • MTB: Pre-sunset stop

Archives

Categories

  • twitter
  • LinkedIn
  • Instagram
  • Contact me
  • RSS feed
Proudly powered by WordPress