Which page?

Hey guys,

Is there any way to check in which page I am?

For example if I am in a Zenpage, an album, an image... etc?



  • fretzl Administrator, Developer
    if ( $_zp_gallery_page == 'pages.php' ) {…}
    if ( $_zp_gallery_page == 'news.php' ) {…}
    if ( $_zp_gallery_page == 'album.php' ) {…}
    if ( $_zp_gallery_page == 'image.php' ) {…}
  • Nice thanks!
  • acrylian Administrator, Developer
    There is more to check the context for news like `is_NewsArticle()` as the news.php page display both the loop, categories and single articles. There are also more of these for Zenpage items.
Sign In or Register to comment.