페이지 템플릿(Page Templates) 추가하기


전역적으로 사용 할 수 있는 템플릿을 만들려면
파일을 생성하고 제일 위쪽에 주석으로 템플릿 이름을 쓰고 테마 폴더에 저장한다.

To create a global template, write an opening PHP comment at the top of the file that states the template’s name.

 

<?php
/* Template Name: My Templage */

 

페이지>> 새로만들기>> 페이지 속성> 템플릿

Pages>> Add New>> Page Attributes> Template

 


반복되는 페이지를 만들때 유융하게 활용할 수 있다.

+ Recent posts