There's also in_the_loop() but I'm not sure how it would work if there was secondary custom loops in a sidebar or footer. Another approach might be seeing if you can grab the current template name and use that as a conditional.
↧
There's also in_the_loop() but I'm not sure how it would work if there was secondary custom loops in a sidebar or footer. Another approach might be seeing if you can grab the current template name and use that as a conditional.