Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 96034

sierrausa on "Ho to pass thumbnail size to it's parent element"

$
0
0

I am trying to find a way to assign thumbnail dimensions to its parent element dynamically so it works for all my posts.

Example:
<div><?php the_post_thumbnail('full');?></div>

All my thumbnails have different heights. Each value needs to be passed as a height parameter to the div holding the thumbnail. Please help.


Viewing all articles
Browse latest Browse all 96034

Trending Articles