워드프레스 템플릿 파일, 테마의 파일구조

템플릿이란?

템플릿(Template) : ‘주형, 주물’

‘미리 만들어진 틀’

템플릿 태그란?

템플릿 태그(Template Tags)는

.미리 만들어진 태그(함수)

.필요한 특정 자료(데이터)를 데이터 베이스에서가져올 수 있게 하는 태그(함수)

템플릿 파일이란?

미리 만들어진 파일, php파일

워드프레스 테마를 구성 모듈

. ‘HTML, Template Tags, PHP Code’가 혼합된 PHP 파일

  • 생성규칙

템플릿 파일의 파일 이름 및 내부 코드는 규칙이 미리 정해져 있습니다. 규칙을 따라 페이지, 포스트, 아카이브 목록 등을 생성할 수 있습니다

각 템플릿 파일의 역할 (Twenty Seventeen 테마의 루트폴더)

  • README.txt : 테마에 대한 정보, 업데이트 내역
  • rtl.css : 우측에서 좌측으로 작성되는 언어(아랍어. .)를 위한 스타일 시트
  • style.css : 기본 스타일 시트
  • 404.php : 페이지를 찾을 수 없을 때 보여지는 파일
  • archive.php : 콘텐츠 목록 파일
  • comments.php : 댓글 파일
  • footer.php : 홈페이지 푸터(하단) 파일
  • front-page.php : 홈페이지 메인페이지 파일
  • functions.php : 테마  함수 파일
  • header.php : 홈페이지 헤더 파일
  • index.php : 테마 출력 기본 파일
  • page.php : 페이지 파일
  • search.php : 검색 결과 파일
  • searchform.php : 검색 폼 파일
  • sidebar.php : 사이드바 파일
  • single.php : 포스트 파일
  • assets 폴더 : 홈페이지  사용요소폴더 (이미지, 동영상, 자바스크립트. . )
  • inc 폴더 : 외부 PHP 템플릿 파일 폴더 (사용자 정의, 템플릿 태그, 탬플릿 함수. . .)
  • template-parts 폴더 : 콘텐츠 출력을 위해 정의된 PHP 템플릿 파일 폴더 (페이지, 포스트. . )

 

twenty sixteen테마의 front-page.phpl

‘PHP 조건문’ :: 콘텐츠 출력

풀이. . . . .

/* 선택된 전면 페이지 콘텐츠를 보여준다

만일 포스트(글, 페이지)를 가지고 있고,

포스트가 있는 동안 그 포스트는

템플릿 파트를 통해서 가져오는데(get) 그 위치는 ‘template-part/page/’ 폴더에 있는 ‘content-front-page.php’ 이다.

*/

전면 페이지의 레이아웃을 수정, 특정 기능을 추가하려면 ‘content-front-page.php’ 및  스타일시트를 수정하면 됩니다.

3,590 comments to “워드프레스 템플릿 파일, 테마의 파일구조”

You can 댓글 남기기 or Trackback this post.

  1. AngellaHoale - 2020년 6월 25일 at 11:13 오전 Reply

    [b]RUS[/b]
    [b]Новая криптовалюта GRD очень выгодная на первом этапе![/b] Дорогие друзья, давайте вспомним 2009 год, когда всего за один доллар США можно было купить 1320 биткоинов (не сатош а именно биткоинов) Упустить такую возможность сегодня это грех, Наша Компания официальная, документы доступны к обзору [url=https://www.stacross-synhros.ru/]на сайте[/url] Компании.

    Инновационная платформа для инвестиций в недвижимость и цифровые активы для вашего будущего. Предоставляем возможность каждому человеку инвестировать в цифровые активы перспективных проектов, владеть долями этих компаний инвестировать в строительство коммерческой и жилой недвижимости по всему миру от 1 квадратного метра с целью получения максимальной выгоды. Получайте пассивный доход, просто храня GRD токены на своем балансе. [url=https://www.stacross-synhros.ru/][b]Регистрация на сайте[/b][/url]

    [img]https://gridgroup.cc/assets/land/image/img-about.png[/img]

    [url=https://gridgroup.cc/landing#decision]Регистрация Grid Group[/url]
    [url=https://gridgroup.cc/landing#roadmap]Grid Group[/url]
    [url=https://gridgroup.cc/landing#howwork]Команда Grid Group[/url]
    [url=https://gridgroup.cc/landing#roadmap]О нас[/url]
    [url=https://gridgroup.cc]Регистрация Grid Group[/url]

  2. Thomasshimb - 2020년 6월 25일 at 2:25 오후 Reply

    It is very nice to read your site, thank you very much for your work, it’s great!

    mp3 flac download full album

    http://engebmovasreper.riticreicolsatareftulaholectti.info/

  3. Francesco - 2020년 6월 25일 at 3:47 오후 Reply

    Unquestionably believe that which you stated. Your favorite justification appeared to be on the web the simplest thing to be aware of.

    I say to you, I definitely get annoyed while people think about worries
    that they just do not know about. You managed to hit
    the nail upon the top and also defined out the whole
    thing without having side-effects , people could take a signal.
    Will likely be back to get more. Thanks

  4. Williamfoozy - 2020년 6월 25일 at 9:43 오후 Reply

    We will give you all information about how to download the [url=https://www.jackpotbetonline.com/new-download-bet777-app-for-both-android-and-ios/][b]Bet777[/b][/url] App for Android and iOS, Top Casino Game Review Super Striker Casino Game Solomon.

  5. Brooksnit - 2020년 6월 26일 at 6:17 오전 Reply

    тестомес бу

    [url=http://testomesi.ru/catalog/testomesy/bu-vosstanovlennye-testomesy/?showall=1]тестомес бу[/url]

  6. HenryHop - 2020년 6월 26일 at 6:31 오전 Reply

    Переживаешь, что годы идут, а зарплата так и стоит на месте? Ломай стереотипы, зарабатывай дома до 500$ в месяц. Это реальность! Подробности здесь
    https://cloud.mail.ru/public/ihSp/qdMtfa8ZH

  7. AlicePhiff - 2020년 6월 26일 at 6:43 오전 Reply

    Hey.My name is Kristina.
    I am looking for a guy for a relationship.
    I am 28 years old 🙁
    I will call to myself or I will come to visit you.
    Find and write me here https://cutt.us/kristaa My nickname kristina2020
    I want it myself!
    I want to change my life!
    Sorry for bad english…

    [url=https://cutt.us/sussanna ][img]http://skype.miss-bdsm.mcdir.ru/img/22.jpg[/img][/url]

  8. Raymondexery - 2020년 6월 26일 at 12:10 오후 Reply

    [url=https://sviloguzov.ru/ktp-kioskovogo-tipa-ktpk-ot-25-do-1000-kva]Ктпн 25,Ктпн 40,Ктпн 63,Ктпн 100,Ктпн 160[/url]

  9. novostroyka63get - 2020년 6월 26일 at 2:32 오후 Reply

    [b][url=https://novostroyka63.ru/]Ленточный фундамент цена[/url][/b]

    Создание дома вашей мечты – это оригинальная возможность, спланировать и претворить в жизнь нечто воистину уникальное во всех отношениях. Возведение фундамента – это в целом первоначальная модель ремонта, в процессе которой домик строится. При расчете замена фундамента под старым деревянным домом цена предусматривается весьма много факторов. Средняясумма возведения домов фундамента составляет приблизительно от 10$ за кв.метр . Погреб сможет умножить итоговую стоимость каждого объекта недвижимости, предоставляя необходимое помещение ради организации хранения и порой рабочее пространство. Наша профессиональная команда по конструированию и возведенью фундамент под памятник на кладбище цена может помочь выстроить жилище, о котором вы всегда мечтали. От начала до конца наша специализированная компания в Череповец позаботимся о всех без исключения процессах, чтобы заказчику не довелось тревожиться о деталях. Специализированная международная компания в Киселевск несет юридическую ответственность за проект, а не вы, именно поэтому организация в Борисоглебск имеют интерес в том, затем чтобы довести до конца строительство коттеджа быстрее и эффективнее. Узнайте о сваи винтовые для фундамента цены в вытегре у спспециалистовециалистов корпорации.

  10. labedroomacins - 2020년 6월 27일 at 7:31 오전 Reply

    [b][url=https://labedroom.com/]Bedroom furniture sets[/url][/b]
    Come in outstanding store in Jefferson Park production for office and home use and cafe! presents over 12000 appointment furniture and goods for a country house and apartments or restaurant. Natural rattan , are used for the purposes of production our branded products , possesses strength and wear resistance, wonderful external data. All furniture processed special compounds, due to which their surface does not absorb water, stable to extremes ambient temperature air and exposure of the sun. Vya our furniture excellent retains its functions even in restaurant in open spaces . In the presented online catalog you offered photos furniture for dining room, hall, bedroom, children’s room , as well as intended for organization of storage area – dressers and cabinets, cabinets and others . In our store in Fairfax you can buy everything for any your home not expensive . We invite client come to store , holding in Westwood what cares about its shopper.

  11. atvmwtbmy - 2020년 6월 27일 at 7:43 오전 Reply

    ничего особенного
    _________________
    [url=https://smartbets.site/]онлайн букмекерская контора[/url]

  12. ReginaLeany - 2020년 6월 27일 at 2:09 오후 Reply

    virtual online casinos
    bet365 casino android app download [url=https://albadelcasinoonline.ch/]bingo[/url] casino virtual juegos gratis online casino best casino ipad app
    online casino biggest bonus

  13. Jasonpak - 2020년 6월 27일 at 2:33 오후 Reply

    malaysia news
    [url=https://www.datanumen.com/word-repair/]

    bali drugs
    [/url]

  14. HelenMef - 2020년 6월 27일 at 4:39 오후 Reply

    Hello guys!
    Watch my webcam masturbation videos – https://cutt.us/freeass
    Have Skype!
    [url=https://cutt.us/freeass ][img]http://skype.miss-bdsm.mcdir.ru/img/b.jpg[/img][/url]

  15. Larryeduch - 2020년 6월 27일 at 10:33 오후 Reply

    [url=https://crowd1.com/signup/evg7773]A new company in which over half a year more than 6 million people have registered. Profit comes from the shares of the world’s largest gaming channels. Gambling, mobile share with us 50%. Passive and active income[/url]

  16. Zacharyappax - 2020년 6월 28일 at 5:07 오전 Reply

    The king casino : the best online casino site ever created… we’ll do everything that we can to keep it that way!!

    What do you need to play the best online casino?

    A good internet connection and decent internet speed.

    What are you looking for from playing the best online casino?

    All the fun – casinos for fun – lots of ways to bet – all the best features of our casino

    What are you looking for from playing the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    A good internet connection and decent internet speed.

    What are you looking for from playing the best online casino?

    Flexible games – from Poker to Skateboarding to Roulette.

    What are you looking for from playing the best online casino?

    A good internet connection and decent internet speed.

    What are you looking for from playing the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    A good internet connection and decent internet speed.

    What are you looking for from playing the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    A good internet connection and decent internet speed.

    What are you looking for from playing the best online casino?

    Easy and fun to play games – games for fun.

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots of ways to play

    What do you need to play the best online casino?

    Fast and easy to play – but very competitive – lots o
    [url=https://www.uzgitwebtasarim.com/]바카라사이트[/url]

    The king casino : the best online casino site for $99 games that are open all day every night.

    : the best online casino site for $99 games that are open all day every night. casino.com casino.com.eu bbet.com bbet.com nbbet

    : the best online casino site for $99 games that are open all day every night. casino.com casino.com.eu bbet.com bbet.com nbbet casino.com.eu bbet.com.eu casino.com.eu

    Other casinos : there may be other options, but these four are the most common and offer the largest range of games in the top games category.

    : there may be other options, but these four are the most common and offer the largest range of games in the top games category. casino.com.cn casino.com.sy bbet.com bbet.com nbbet bbet.com.au casino.com.au bbet.com casino.com.ng bbet.com casino.com.nb bbet.com casino.com.ch bbet.com.be casino.com.nl

    All these sites can be found at:

    Online poker sites : These allow you to easily find more than one site to play online poker. As online poker has grown it has also spread to other online services.

    : These allow you to easily find more than one site to play online poker. As online poker has grown it has also spread to other online services. cardhaus.eu casino.com online_poker cardhaus.eu casino.com cardhausonline.org

    online_poker online_casino cardhausonline.org online_bet casino.com online_bet.co casino.com.fr cardhausonline.com.sg cardhausonline.com.ch cardhausonline.com.ca casino.com.me

    online_casino online_cheats.eu cardhausonline.eu online_cheats.es cardhausonline.org cardhausonline.net

    Online casino services : online gaming services are often not offered in a free online environment and are offered in terms of points, currency conversion methods, and other rules related to online gaming.

    : online gaming services are often not offered in a free online environment and are offered in terms of points, currency conversion methods, and other rules related to online gaming. playonline.eu playonline.com playonline.biz playonline.eu.nl playonline.es playonline.fr.nl

    online_casinos playonline.com playonline.eu.nl playonline.es.nl

    Online game websites : It’s easy to get a fre
    [url=https://www.forexlingo.com/]바카라사이트[/url]

  17. Ciatex - 2020년 6월 28일 at 6:04 오전 Reply

    GoCanadian USA [url=https://cialiusa.com]buy cialis miami[/url]
    cialis lilly argentina

  18. Williamacids - 2020년 6월 28일 at 10:56 오전 Reply

    301 Moved Permanently [url=https://winneroriginal.com]301 Moved Permanently>>>[/url]

  19. medspavki24het - 2020년 6월 28일 at 11:32 오전 Reply

    [url=http://medicinskie-spravki.ru]купить медкомиссию на крайний север[/url] – подробнее на нашем сайте [url=http://medicinskie-spravki.ru]medicinskie-spravki.ru[/url]
    Личная [url=http://medicinskie-spravki.ru]медицинская книжка[/url] ([url=http://medicinskie-spravki.ru]санитарная книжка[/url]) – официальный документ строгой отчетности. В санитарной книжке отражаются все данные о результатах периодических осмотров, сдачи анализов и прививках, наличия инфекционных заболеваний, а также о прохождении курсов по гигиеническому воспитанию и аттестации.

  20. damp survey hardwicke - 2020년 6월 28일 at 11:08 오후 Reply

    I just couldn’t go away your sute prior to suggesting that I actually loved the usual
    information a person provide on your guests? Is gonna be again often to inspect new
    posts

  21. Meghansox - 2020년 6월 29일 at 7:02 오전 Reply

    Meet a man for real meetings and sex!
    My nickname on the site krista2020
    https://cutt.us/instagram-girls
    [url=https://cutt.us/instagram-girls ][img]http://skype.miss-bdsm.mcdir.ru/img/dima.jpg[/img][/url]

  22. play game - 2020년 6월 30일 at 8:35 오전 Reply

    WOW just what I was searching for. Came here by searching for play

  23. SherriScore - 2020년 6월 30일 at 2:13 오후 Reply

    Wanna casual sex? My pussy is at your disposal! Find my profile with phone number here – https://cutt.us/milf2020 My nickname is Veronika2020

    [url=https://cutt.us/home2019 ][img]http://skype.miss-bdsm.mcdir.ru/img/c2.jpg[/img][/url]

  24. NorvezhskiyDomblilm - 2020년 6월 30일 at 3:09 오후 Reply

    Добрый день!
    Норвежский дом – новые тенденции строительства домов и бань.
    Это не шутка. Действительно на вашем участке можно построить дом, баню или дом-баню всего лишь за один день.
    Суть в том, что строительство дома, бани или дома-бани на заводе займет от 30 дней.
    Цены довольно смешные! Дешевле, чем однокомнатная квартира. Скажу больше, обмана здесь нет и это не маркетинговая фишка. Реально можно построить норвежский дом дешевле, чем купить квартиру.
    Конструкция стен, потолка и пола реально теплая, теплее, чем из традиционных материалов. Будете экономить на отопление.
    Строительство реально качественное без брака, с соблюдением всех технологических процессов и строительных норм.
    Если вам интересно:
    [url=https://prorab2.ru/stroitelstvo/norvezhskiy-dom/norvezhskiy-dom-proekty-tsena-pod-klyuch-za-1-den.html]Проекты финских скандинавских норвежских домов[/url]
    Можете смело остановиться на своем выборе. Потому что производитель дает гарантию на дом, баню или дом-баню!
    До новых встреч!

  25. multymixraind - 2020년 6월 30일 at 7:09 오후 Reply

    Guys just made a web-site for me, look at the link: https://multymix.ru/ Tell me your guidances. Thanks.

  26. qnyywyxnw - 2020년 6월 30일 at 11:55 오후 Reply

    Интересная новость
    _________________
    [URL=https://onlinerealtopmoneygame.xyz/casino-carnival-games/]Casino carnival games[/URL]

  27. AngellaHoale - 2020년 7월 1일 at 11:05 오전 Reply

    [b]RUS[/b]
    [b]Новая криптовалюта GRD очень выгодная на первом этапе![/b] Дорогие друзья, давайте вспомним 2009 год, когда всего за один доллар США можно было купить 1320 биткоинов (не сатош а именно биткоинов) Упустить такую возможность сегодня это грех, Наша Компания официальная, документы доступны к обзору [url=https://www.stacross-synhros.ru/]на сайте[/url] Компании.

    Инновационная платформа для инвестиций в недвижимость и цифровые активы для вашего будущего. Предоставляем возможность каждому человеку инвестировать в цифровые активы перспективных проектов, владеть долями этих компаний инвестировать в строительство коммерческой и жилой недвижимости по всему миру от 1 квадратного метра с целью получения максимальной выгоды. Получайте пассивный доход, просто храня GRD токены на своем балансе. [url=https://www.stacross-synhros.ru/][b]Регистрация на сайте[/b][/url]

    [img]https://gridgroup.cc/assets/land/image/img-about.png[/img]

    [url=https://gridgroup.cc/landing#roadmap]Команда Grid Group[/url]
    [url=https://gridgroup.cc]Регистрация Grid Group[/url]
    [url=https://gridgroup.cc/landing#roadmap]Придукты Grid Group[/url]
    [url=https://gridgroup.cc/landing#team]Регистрация Grid Group[/url]
    [url=https://gridgroup.cc/landing#howwork]Команда Grid Group[/url]

  28. RobertDog - 2020년 7월 1일 at 3:13 오후 Reply

    гематома на лапе у собаки

    [url=http://ya-vet.com/oftalmolog/adenoma-tretego-veka-u-sobak]3 веко у собаки[/url]

  29. SherriScore - 2020년 7월 1일 at 5:55 오후 Reply

    Meet a man for real meetings and sex!
    My nickname on the site Jesika2020
    https://cutt.us/instagram-girls
    [url=https://cutt.us/instagram-girls ][img]http://skype.miss-bdsm.mcdir.ru/img/7721.jpg[/img][/url]

  30. TęSti naršymą - 2020년 7월 2일 at 12:50 오전 Reply

    Good day! This post couldn’t be written any better!
    Reading this post reminds me of my good old room mate!
    He always kept chhatting about this. I will forwar this article tto him.
    Pretty sre he will have a good read. Many thanks for sharing!

    Visit my web page – TęSti naršymą

  31. Edwardbence - 2020년 7월 2일 at 2:33 오전 Reply

    Мебельный щит оптом от производителя! https://ekolestnica37.ru/ – Высококачественный мебельный щит из массива сосны, бука, дуба, ясеня, березы! Современное Итальянское оборудование, профессиональные мастера. Упаковка в пленку, поможем с доставкой в любой регион России! Скидки оптовикам!

  32. http://Www.Gloucesterscrapcars.com/ - 2020년 7월 2일 at 9:26 오전 Reply

    Good day! Do you use Twitter? I’d like to follow you if that
    would be ok. I’m undoubtedly enjoying your blog and look forward to new posts.

  33. DavidTieda - 2020년 7월 2일 at 11:46 오전 Reply

    Junee sheep sentencing: the truth about the case | Michael Jackson, the king of bad taste, reveals why he was wrong | Michael Jackson and Prince Charming have to go!

    When I read this article about ‘Eden’, I immediately assumed it was written by someone who does not like the idea of child rape and has had an affair with the convicted rapist of a nine-year-old boy in the mid 70s.

    I was shocked. I am still shocked, but I am pleased to see it has been picked up by other media outlets. One could say these are “journalists”, but that is a different question. As long as the truth is uncovered and this man is brought to justice, I cannot in good conscience support any form of child sexual abuse.

    This is a man who says he “never hurt another baby in my life”, that he loves “a girl”, and that he is “a Christian”, but his life in general shows the truth. He knows full well what sort of men like him do, why they do it, how to deal with it. He has a history of abusing girls and boys, including some young boys, and I am disgusted by his continued silence on this crime. He is guilty of something very evil, but he is not the sort of person we like to hang out with and allow to be allowed to use our young. I hope he gets the help and support he needs and we can get that man to the grips of some sort of justice that can remove him from any type of position of power.
    [url=https://www.forexlingo.com/]예스카지노[/url]
    [url=https://www.water-blogged.com/]예스카지노[/url]
    [url=https://www.webix3.com/]온라인카지노[/url]
    [url=https://www.gohappyclub.com/]온카지노[/url]
    [url=https://www.shamsbim.com/]바카라[/url]

    Affordable homes pledged for mining towns to fund more renewable energy projects

    Published: 22 May 2017

    The US government pledged on Thursday $600m of new funds to finance renewable energy projects in America.

    The initiative was announced following the announcement on Thursday that the US had signed a pact with China to invest $1bn in renewable energy projects.

    “In the coming years, the United States will pursue its goal of creating more than 150 gigawatts (GW) of clean, clean energy, both onshore and offshore, under a comprehensive policy to cut the use of fossil fuels while providing low-cost energy options that people need,” Secretary of Commerce Wilbur Ross said at the time.

    This includes investments of between $10m and $30m each, and is intended to cover up to $1bn (£860m) of investment over two years to help the US transition to low-carbon energy sources.

    The commitment will cover the construction and installation of renewable energy technology.

    Solar arrays, and wind farms, have already been built in the US, and plans are underway in Michigan and Pennsylvania.

    At least 300 gigawatts (GW) of new solar energy capacity has been installed since the announcement in January, and the energy administration now expects solar energy will generate nearly as much electricity as fossil fuels by 2050.

    A recent survey published by the Brookings Institution predicted that the US alone could install 50GW of solar PV in 2020 – far greater than is currently planned, though the survey made a significant assumption about future demand.

    Wind turbines have been built in several states and have been tested for use on a commercial scale, though US federal subsidies are still only half what many countries and utilities are charging.

    President Donald Trump vowed to invest $1bn in clean energy by 2020 – while a spokesman for the US Department of Energy, Rob Bowen, told the press that the funds from the Trump administration would come from both domestic and foreign sources.

    The US Department of Energy will also be providing over 1GW of subsidies for wind turbine manufacturers, which it says have been very supportive of the US.

    Trump’s commitment to clean energy also comes as it is now being confirmed that the US will begin construction of the nation’s first wind farm in the Gulf of Mexico, a project worth about $600m.

    The project, planned for the Gulf of Mexico near Key West, Florida, would be the first of its kind in the United States, and could generate electricity for several hundred miles, according to the New York Times.

    The project is expected to cost between $40m and $80m, and has also attracted interest from several companies.

    Trump will not make the announcement on the ground in California until he receives a federal permit o

  34. AngelAbela - 2020년 7월 2일 at 12:24 오후 Reply

    Wanna relax after a long day. Let’s chat! Visit the site – https://cutt.us/milf2020 Find me by nickname Tessa

    [url=https://cutt.us/home2019 ][img]http://skype.miss-bdsm.mcdir.ru/img/22.jpg[/img][/url]

  35. ArthurDig - 2020년 7월 2일 at 12:26 오후 Reply

    http://tadalafilprof.com – canada cialis
    [url=http://tadalafilprof.com]cialis prices[/url]

Comment pages
1 70 71 72

댓글남기기

Your email address will not be published.