Tag: template tags

WordPress Template Tags: How They Show Post Content & More

Especially when you’re new to WordPress and theme-making, making sense of WordPress template tags is super important and super valuable. It’s actually one of the things I remember spending lots of time not-quite getting. So today we’re presenting the Up and Running chapter for your enjoyment. I think it’s super relevant, and if you can’t explain in a sentence what get_the_permalink does in a WordPress template, you simply owe it to yourself to read it.


Adding an is_product_subcategory() Conditional Tag to WooCommerce

wp mayor | is_subcategory

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.