Title: scferg's Replies | WordPress.org

---

# scferg

  [  ](https://wordpress.org/support/users/scferg/)

 *   [Profile](https://wordpress.org/support/users/scferg/)
 *   [Topics Started](https://wordpress.org/support/users/scferg/topics/)
 *   [Replies Created](https://wordpress.org/support/users/scferg/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/scferg/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/scferg/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/scferg/engagements/)
 *   [Favorites](https://wordpress.org/support/users/scferg/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Post_thumbnail image title as post title](https://wordpress.org/support/topic/post_thumbnail-image-title-as-post-title/)
 *  Thread Starter [scferg](https://wordpress.org/support/users/scferg/)
 * (@scferg)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/post_thumbnail-image-title-as-post-title/#post-2042836)
 * I think I’ve answered part of my question. As documented [here](http://codex.wordpress.org/Function_Reference/the_post_thumbnail):
 *     ```
       $default_attr = array(
       			'src'	=> $src,
       			'class'	=> "attachment-$size",
       			'alt'	=> trim(strip_tags( $attachment->post_excerpt )),
       			'title'	=> trim(strip_tags( $attachment->post_title )),
       		);
       ```
   
 * I’m just now unsure of where to place that snippet of code to get it to work.
   Or I could be off completely.

Viewing 1 replies (of 1 total)