Dynamic post title for WordPress site

You can create titles dynamically by adding following code to your header.php file WordPress theme.

	  if (is_home()) { echo bloginfo('name');
		  } else if (is_404()) {
					   echo '404 Not Found';
		  } else if (is_category()) {
					   echo 'Category:'; wp_title('');
		  } else if (is_search()) {
					   echo 'Search Results';
		  } else if ( is_day() || is_month() || is_year() ) {
					   echo 'Archives:'; wp_title('');
	else {
			echo wp_title('');

Related posts:

HTML5 page structure

HTML5 offers more powerful structure comparing to older versions of Html. There are many new …

Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us