Create testimonials.php

This code is to get data from custom post type which in this case is testimonials but you can use this code for your own cpts as well