Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created April 15, 2021 06:24
Show Gist options
  • Select an option

  • Save wpweb101/309424b174bebf750f558031643391bb to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/309424b174bebf750f558031643391bb to your computer and use it in GitHub Desktop.
Indentation - Correct
<?php
if( have_post() ) {
echo get_the_title();
}
else {
echo 'No post found!';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment