Tag: template tags
Understanding is_singular() in WordPress Templates

This text and video Quick Guide explains how to use is_singular(), one of the more useful WordPress template tags. We also explain the difference between the is_singular() conditional tag, and the two other related ones: is_page() and is_single().
WordPress Template Tags: How They Show Post Content & More

WordPress template tags are a super-important and super-valuable part of WordPress, especially for theme development. They’re also one of the things I remember spending lots of time not quite getting as I was learning WordPress.
Adding an is_product_subcategory() Conditional Tag to WooCommerce

I’ve got a project that needs to treat WooCommerce category pages differently from its subcategory pages. Both use taxonomy-product_cat.php, though. What I’d really love to do is change just the search field in that template, depending on whether a particular page is showing a top-level category or a subcategory.