Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Convert pages template

I'm stuck at the part where we're trying to show Testimonials on every page. I created content-testimonials.php and pasted in

            <div class="divider grid_12">
        <h5>Testimonial</h5>
    </div>

    <div class="testimonial push_2 grid_10 clearfix">
        <blockquote>&ldquo;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eu purus facilisis massa commodo hendrerit vitae et leo. Phasellus in eros eu libero pharetra lacinia vel a nunc. Nam adipiscing auctor justo eu cursus. Ut interdum tristique tortor. Sed orci mi, fermentum ac adipiscing et, pellentesque vel quam.&rdquo;</blockquote>
        <cite>&mdash; Someone who loves me</cite>
    </div>

and wrote <?php get_template_part('content','testimonials'); ?> in page.php but nothing shows up below the page's content. Is there something I'm missing? Indentation shouldn't matter too much here, should it?

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Is the page you created and dumped that code into named "content-testimonials.php"?

Yep!

Yep!

Never mind - I figured it out!