• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Adrien Design

  • Blog
  • 3 Doors
You are here: Home / Archives for Web Development / WordPress / Categories & Taxonomies

Categories & Taxonomies

WordPress has a powerful library of taxonomy features. However, some tasks and problems require a bit of custom handwork on the developer's part to get just what you want from this toolset.

Here are a few solutions that I crafted up specifically for WordPress categories / taxonomies.

02/01/2022

Checking for a specific category

This function will allow you to check if the current post or archive page is assigned a specific category. I use it often to apply category-based body classes and special styles for category archives.

Filed Under: Categories & Taxonomies

Primary Sidebar

About the Author

I studied design in college, but I discovered what I really want to do when I started getting into web design and coding. The beautiful part about it is how you can study, practice, and learn every day; and you'll never reach the bottom of the well.

Every day working as a WordPress developer is challenging and fulfilling.

This is my personal site where I come to put down my thoughts and experiment with code ideas.

Copyright © 2023 · Adrien Sanborn