I am displaying video and content form this function the_content() for this am using you-tube [embed] link. How can i give height and width ???

Also, I am using the_post_thumbnail() for image it to have size issues I've tried this

the_post_thumbnail('',array('width' => '240','height' => '170') );

but failed


According to Codex Embeds documentation:

It also allows you to set a maximum (but not fixed) width and height, like so: [embed width="123" height="456"]...[/embed]

For the_post_thumbnail() you arguments usage seems wrong, $size is first argument and it doesn't come in that format ( the_post_thumbnail( array( 240, 170 ); ).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.