Report abuse

1
2
3
4
5
6
7
8
9
10
11
if ( is_single() ) {
	$postID = $wp_query->post->ID;
	the_post();
	$c[] = 'single postid-' . $postID;
	if ( isset($wp_query->post->post_date) )
		sandbox_date_classes(mysql2date('U', $wp_query->post->post_date), $c, 's-');
	foreach ( (array) get_the_category() as $cat )
		$c[] = 's-category-' . $cat->category_nicename;
		$c[] = 's-author-' . sanitize_title_with_dashes(strtolower(get_the_author('login')));
	rewind_posts();
}