Skip to content

Instantly share code, notes, and snippets.

@tomharrigan
Created January 4, 2013 07:50
Show Gist options
  • Save tomharrigan/4450740 to your computer and use it in GitHub Desktop.
Save tomharrigan/4450740 to your computer and use it in GitHub Desktop.
add rich snippet stuff for date
function woo_post_meta() {
if ( is_page() ) { return; }
$post_info = '<span class="small">' . __( 'By', 'woothemes' ) . '</span> [post_author_posts_link] <span class="small">' . _x( 'on', 'post datetime', 'woothemes' ) . '</span><span class="updated"> [post_date] </span><span class="small">' . __( 'in', 'woothemes' ) . '</span> [post_categories before=""] ' . ' [post_edit]';
printf( '<div class="post-meta">%s</div>' . "\n", apply_filters( 'woo_filter_post_meta', $post_info ) );
} // End woo_post_meta()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment