Frank Cottrell Boyce has been confirmed to pen an episode for Doctor Who series eight. The children's novelist and Olympics opening ceremony writer's instalment will feature new Doctor Peter Capaldi, his companion Jenna Coleman as well as a cast of child actors, including Harley Bird - the voice of children's favourite Peppa Pig.

Cottrell Boyce, 54, was part of the creative team behind Danny Boyle's highly-praised ceremony which kicked off the London 2012 Olympic Games. He is also known for the novel and film Millions (directed by Boyle) and screenplays for a string of Michael Winterbottom films including 24 Hour Party People and Welcome to Sarajevo.

Speaking of his new gig, Cottrell Boyce said, "Of all the thrills that pen and paper have brought into my life, there's nothing that quite compares to the buzz of unlimited possibility that rushes through your fingers and into your brain when you write the words: 'Interior ... TARDIS'.

"I was flabbergasted to be asked to write an episode - partly because I've been so absorbed in the last few series that I'd sort of forgotten that it wasn't real."

Doctor Who showrunner, Steven Moffat, added: "Frank's script is pure magic - and everything I could have hoped for from the genius behind the Olympics opening ceremony!! Doctor Who is born anew in the mind of a genius!"

More like this

The episode will be directed by Sheree Folkson (Casanova) and produced by Paul Frift (The Escape Artist). Cottrell Boyce completes a line-up of series eight screenwriters which also includes Mark Gatiss, Steve Thompson, Phil Ford, Gareth Roberts, Peter Harness and Jamie Mathieson.

Doctor Who returns to BBC1 on Saturday 23 August with Keeley Hawes, Ben Miller, Frank Skinner and Hermione Norris all lined up to guest star. Watch the trailer below: