Can I grab the current taxonomy ID with "If"?

Hey Michael, you can definitely do that! You might want to check out this thread for inspiration. That one is a menu loop but the principles should work the same for your taxonomy term loop. One of the things you’ll notice in that thread is that since the information about the current page isn’t available when you’re writing something inside a loop, you’ll need to save a variable outside the loop so that you can pass it to your If tag within your loop.

1 Like