Title: Tom Smith's Replies | WordPress.org

---

# Tom Smith

  [  ](https://wordpress.org/support/users/tom-smith/)

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

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Facebook] Empty src on javascript tag](https://wordpress.org/support/topic/empty-src-on-javascript-tag/)
 *  [Tom Smith](https://wordpress.org/support/users/tom-smith/)
 * (@tom-smith)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/empty-src-on-javascript-tag/#post-3381529)
 * How is this resoloved in 3.5 if the patch is not included in 3.5.2?
 * Is there a work-around that I can do w/ apply_filters?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Get thumbnnails in appearance->menus? wp_nav_menu](https://wordpress.org/support/topic/get-thumbnnails-in-appearance-menus-wp_nav_menu/)
 *  Thread Starter [Tom Smith](https://wordpress.org/support/users/tom-smith/)
 * (@tom-smith)
 * [16 years ago](https://wordpress.org/support/topic/get-thumbnnails-in-appearance-menus-wp_nav_menu/#post-1598524)
 * Ok. So, in a fit of heroic coding/forum reading I came across this post:
    [http://dustyreagan.com/global-page-navigation-accross-wordpress-mu-blogs/](http://dustyreagan.com/global-page-navigation-accross-wordpress-mu-blogs/)
 * Which led me to make a copy of the wp_nav_menu() function called my_wp_nav_menu
   in my theme’s function.php file. Then, I found the part where the menu object
   is most editable, @ line 195, after sorting and before walk_nav_menu_tree(). 
   Added this:
 *     ```
       foreach($sorted_menu_items as $val) {
               $title = get_the_post_thumbnail($val->object_id, 'medium') . '<br />' . $val->title;
               $val->title = $title;
               //$val->title .= ' ' . $val->ID;
           }
       ```
   
 * This results in just what I wanted, a user-adminnable menu with automatic inclusion
   of thumbnails in only one of the two menus of the theme!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Get thumbnnails in appearance->menus? wp_nav_menu](https://wordpress.org/support/topic/get-thumbnnails-in-appearance-menus-wp_nav_menu/)
 *  Thread Starter [Tom Smith](https://wordpress.org/support/users/tom-smith/)
 * (@tom-smith)
 * [16 years ago](https://wordpress.org/support/topic/get-thumbnnails-in-appearance-menus-wp_nav_menu/#post-1598515)
 * I found one easy way to do it, by simply adding the thumbnail path to the menu
   label. I like that pretty well, but I don’t think the users will go for it. 🙂
 * So, instead of the menu label being:
    `Something`
 * I made it:
    `<img src="/path/to/thumb/somethingthumb.png">Something`
 * Anyone got a way to connect wp_nav_menu() to the_post_thumbnail()?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to put home url in new wp_nav_menu?](https://wordpress.org/support/topic/how-to-put-home-in-new-wp_nav_menu/)
 *  [Tom Smith](https://wordpress.org/support/users/tom-smith/)
 * (@tom-smith)
 * [16 years ago](https://wordpress.org/support/topic/how-to-put-home-in-new-wp_nav_menu/#post-1544038)
 * One Super Easy way to do that would be to add a custom link in the menu, [http://yourdomain.com/](http://yourdomain.com/)
 * Zero code.

Viewing 4 replies - 1 through 4 (of 4 total)