Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Ottens on "Style post format on home only"

$
0
0

I'm trying to style the post format aside only on the front page of my blog. Specifically, I want it to give me a larger thumbnail there. Problem is, that also changes the way aside posts are displayed in tag and category archives -- which I don't want.

This is what I have in my content.php:

<?php
		if ( has_post_format('aside') ) {
		the_post_thumbnail('large');
		} else {
		the_post_thumbnail('medium');
		}
		?>

Adding either && is_front_page() or && is_home() to the first conditional statement, however, doesn't seem to make a difference. Am I doing something wrong?


Viewing all articles
Browse latest Browse all 8245

Trending Articles