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?

Thanks.

Comments

  • fretzl Administrator
    `
    if ( $_zp_gallery_page == 'pages.php' ) {…}
    if ( $_zp_gallery_page == 'news.php' ) {…}
    if ( $_zp_gallery_page == 'album.php' ) {…}
    if ( $_zp_gallery_page == 'image.php' ) {…}
    `
    etc...
  • Nice thanks!
  • acrylian Administrator
    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.