inc/functions/extras.php
/**
 * Schema type
 * @return string schema itemprop type
 */
Schema type
@return string schema itemprop type
Schema type @return string schema itemprop type
function storefront_html_tag_schema() {
	$schema 	= 'http://schema.org/';
	$type 		= 'WebPage';
	if ( is_singular( 'post' ) ) {
		$type 	= 'Article';
	}
	elseif ( is_author() ) {
		$type 	= 'ProfilePage';
	}
	elseif ( is_search() ) {
		$type 	= 'SearchResultsPage';
	}
	echo 'itemscope="itemscope" itemtype="' . esc_attr( $schema ) . esc_attr( $type ) . '"';
}
function storefront_html_tag_schema ( ) { $ schema = 'http://schema.org/' ; $ type = 'WebPage' ; if ( is_singular ( 'post' ) ) { $ type = 'Article' ; } elseif ( is_author ( ) ) { $ type = 'ProfilePage' ; } elseif ( is_search ( ) ) { $ type = 'SearchResultsPage' ; } echo 'itemscope="itemscope" itemtype="' . esc_attr ( $ schema ) . esc_attr ( $ type ) . '"' ; }
Schema type
 @return string schema itemprop type
Schema type @return string schema itemprop type
// Is single post // Is author page // Is search results page