When using pretty permalinks, I simply check against the request;
if ( preg_match( '#^stores(/.+)?$#', $wp->request ) ) {
// away we go!
}
No extra DB queries, little computation, and works right down the tree!
When using pretty permalinks, I simply check against the request;
if ( preg_match( '#^stores(/.+)?$#', $wp->request ) ) {
// away we go!
}
No extra DB queries, little computation, and works right down the tree!