Post type and post format are different. Try get_post_format()
.
In your code, this would be:
if ( 'video' === get_post_format() ) {
...
Post type and post format are different. Try get_post_format()
.
In your code, this would be:
if ( 'video' === get_post_format() ) {
...