This post is from a low-reputation account and contains an unverified outbound link. Be cautious before clicking external links.

워드프레스 테마 만들기: 뼈대만들기 - 글 제목을 출력해보자! 2

Words
22
Reading
1 min
Listen
Play
9y

저번시간에 설명을 덜한게 있네요! HTML 구조를 좀 더 보완하겠습니다.

<!doctype html>
<html <?php language_attributes(); ?>>
  <head>
    <meta charset="">
    <link rel="profile" href="http://gmpg.org/xfn/11">
    <?php wp_head(); ?>
  </head>
  <body <?php body_class(); ?>>
    <?php wp_footer(); ?>
  </body>
</html>
<!doctype html>
HTML   
<html <?php language_attributes(); ?>>
PHP   
  <head>
 
    <meta charset="">
   
    <?php wp_head(); ?>
  
  </head>
 
  <body <?php body_class(); ?>>
Body  .     .
    <?php wp_footer(); ?>
  
  </body>
 
</html>
HTML  

모든 테마를 시작할때는 이 코드로 시작하면 될것같습니다. 여기에 저번에 배운것을 넣으면 이렇게 되겠네요!

<!doctype html>
<html <?php language_attributes(); ?>>
  <head>
    <meta charset="">
    <link rel="profile" href="http://gmpg.org/xfn/11">
    <?php wp_head(); ?>
  </head>
  <body <?php body_class(); ?>>
   <?php bloginfo('title');?>
    <?php wp_footer(); ?>
  </body>
</html>
워드프레스 테마 만들기: 뼈대만들기 - 글 제목을 출력해보자! 2 | Ecency