Title: walterdevos's Replies | WordPress.org

---

# walterdevos

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

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

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Thumbnail title and alt?](https://wordpress.org/support/topic/thumbnail-title-and-alt/)
 *  [walterdevos](https://wordpress.org/support/users/walterdevos/)
 * (@walterdevos)
 * [16 years ago](https://wordpress.org/support/topic/thumbnail-title-and-alt/#post-1324796)
 * There is another way too:
    Change the attributes of thePostThumbnail in the template(
   index,page,..) for the alt use array alt
 *     ```
       thePostThumbnail(array('alt' => ''.get_the_title().''));
       ```
   
 * for the title use array title
 *     ```
       thePostThumbnail(array('title' => ''.getTheTitle().''));
       ```
   
 * no need to change stuff in the functions.php
 * You can add lots of parameters, for example:
 *     ```
       the_post_thumbnail( 'thumbnail', array('class' => 'alignleft post_thumbnail', 'style' => 'width: 186px;', 'alt' => 'no alt', 'title' => ''.get_the_title().'' ));
       ```
   

Viewing 1 replies (of 1 total)