Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php if else wordpress

if ( is_front_page() && is_home() ) {
  // Default homepage
} elseif ( is_front_page() ) {
  // static homepage
} elseif ( is_home() ) {
  // blog page
} else {
  //everything else
}
Source by codex.wordpress.org #
 
PREVIOUS NEXT
Tagged: #php #wordpress
ADD COMMENT
Topic
Name
1+5 =