Add SportsEvent microdata to event blocks

This commit is contained in:
Brian Miyaji
2017-11-03 17:38:38 +11:00
parent 70dd825ba7
commit 5ad7219b03
2 changed files with 15 additions and 8 deletions

View File

@@ -228,7 +228,7 @@ if ( !function_exists( 'sp_flush_rewrite_rules' ) ) {
if ( !function_exists( 'sp_add_link' ) ) {
function sp_add_link( $string, $link = false, $active = true ) {
if ( empty( $link ) || ! $active ) return $string;
return '<a href="' . $link . '">' . $string . '</a>';
return '<a href="' . $link . '" itemprop="url" content="' . $link . '">' . $string . '</a>';
}
}