Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

the_post_thumbnail add class

1
2
3
if ( has_post_thumbnail() ) { 
  the_post_thumbnail('medium', array('class' => 'alignleft'));
}
Source by www.isitwp.com #
 
PREVIOUS NEXT
Tagged: #add #class
ADD COMMENT
Topic
Name
4+9 =