Josh Boone is directing the adaptation of John Green's bestselling novel
Story follows two cancer-stricken teens who strike up a romantic relationship as they face an uncertain future.
Production starts later this month in Pittsburgh.
Trammell, who plays bar owner Sam Merlotte on HBO's "True Blood," will soon be seen opposite Virginia Madsen in the indie "Crazy Kind of Love." He just wrapped the gritty indie movie "The Aftermath" and also has "Things People Do" and the comedy "Me" awaiting release.
Trammell is repped by Innovative Artists, Untitled Entertainment and Parseghian Planco.