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?
- The topic ‘How to tell if plugin template tag is within The Loop?’ is closed to new replies.