ZaZaKi, a web developer Between Manchester UK & Rotterdam NL. © 2015-2024.

WordPress page conditions front page

<?php
if ( is_front_page() && is_home() ) {
  echo "<p>front and home page</p>";
  
} elseif ( is_front_page() ) {
  echo "<p>front</p> ";
  
} elseif ( is_home() ) {
   echo "<p>front</p> "; 
   
} elseif ( is_single() ) {
	// is single page or blog post ?
   echo "<p>is_single()</p> ";

} elseif ( is_shop()) {
	 
   echo "<p>shop </p>";

} elseif ( is_page()) {
	 
   echo "<p>page </p>";


   
} else {
  
}
?>