Just came across some inconsistency. Perhaps it’s purely a documentation issue, but I wonder if anybody knows.
When looking at the docs for is_page() it says that “This tag must be used BEFORE The Loop and does not work inside The Loop”.
However, looking at is_singular() documentation – which seems to be using is_page(), there is no such mention about avoiding using it within the loop.
Is it ok to use is_singular() and/or is_page() within the loop??
- The topic ‘is_page usage within the loop’ is closed to new replies.