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 WordPress Theme Development Custom Post Type Templates in WordPress The Portfolio Homepage

Sam Donald
Sam Donald
36,305 Points

How do we a template support to themes?

I've entered the php for Template Name but the option doesn't appear in my page attributes at the backend.

Do I have to do something in the functions.php

Can you paste your code here for us to see?

Yerko Palma
Yerko Palma
2,662 Points

You need to put the comment at the beginning of your template file, before the get_header call, like this

<?php 
/*
  Template Name: Portfolio Grid Template
*/
?>

<?php get_header(); ?>