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 trialRachel Khoong
7,970 PointsWhat if I don't want my testimonials to go on each page, just the "about" page?
For example, if I had small profiles of employees, I would only want it on the "about" page. I've tried to use the is_page, but I don't think it works like that.
1 Answer
Michael Sjouw
2,727 PointsI think the best way to do this is to make a copy of your page.php file and name it page-$slug.php, or alternatively page-$id.php. (replace the variables in the filename with what applies to your page. So probably page-about.php)
On this new template you add your testimonials and remove them from the page.php template.