The role of Greg Heffley in the first Diary of a Wimpy Kid movie (2010) was played by Zachary Gordon.