How to tell if plugin template tag is within The Loop?
-
Our plugin provides a template tag.
Is there a way to tell if that template tag is within The Loop?
We tried variation of
if ( $post )
but it appears that $post is available even after the loop ends.Any ideas on how to know if we’re within The Loop?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to tell if plugin template tag is within The Loop?’ is closed to new replies.