Code

WordPress: find posts with ANY term in a given taxonomy

I was recently Googling around for an answer to this, and didn’t see that anyone posted this method, but here’s the gist. If you want to find out if a given post has a certain taxonomy, (not just a specific term, but ANY term in that taxonomy), you can use the function has_term (more in…

Code

Unique styling with custom classes added to the body tag in WordPress

Sometimes when I’m making a site, I need to alter the overall page styles for a whole section, or collection of pages. To do this, I prefer adding a new class to the <body> tag so that I can target all of the children easily using CSS nesting. Let’s say I’m making a new website…

Code

Show hidden files (like htaccess) in Mac OS X

This method has been posted all over the place, but I haven’t found a good step-by-step walkthrough that explains how and why to show hidden files on a Mac. As my students frequently ask for it, I’m posting here to keep in a reference. Update Aug 2019: you can do it with a simple keyboard…