Conditional tags

You can user WordPress Contidional tags to create if-statements that sorts out the good stuff you want to display.

Code Snippet:

<?php
if( is_front_page() ) {
  # Do one thing #
} elseif( is_page( 'About' ) {
  # Do another thing #
} elseif( is_admin() ) {
  # Do the third thing
}
?>

Posted in Conditional