Skip to content

Instantly share code, notes, and snippets.

@marcosfreitas
Created July 10, 2017 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marcosfreitas/1e540c9a876b9e8d1ed3ba761861f00f to your computer and use it in GitHub Desktop.
Save marcosfreitas/1e540c9a876b9e8d1ed3ba761861f00f to your computer and use it in GitHub Desktop.
combinação de títulos para o title do html
<title>
<?php
if(is_home()):
bloginfo('name');
elseif( is_category() || is_tag() ):
single_cat_title(); echo ' &bull; '; bloginfo('name');
elseif( is_single() || is_page() ):
single_post_title();
else:
wp_title( '|', true, 'right' );
endif;
?>
</title>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment