Suche senden
Hochladen
Templating WordPress
•
2 gefällt mir
•
6,484 views
Konstantin Kovshenin
Folgen
At WordCamp Sofia 2013
Weniger lesen
Mehr lesen
Technologie
Business
Melden
Teilen
Melden
Teilen
1 von 25
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Sumahexavector
Sumahexavector
jbersosa
Simular un next del recordset en php de forma rudimentaria
Simular un next del recordset en php de forma rudimentaria
jbersosa
การบันทึกและออกจากโปรแกรมMspowerpoint
การบันทึกและออกจากโปรแกรมMspowerpoint
เทวัญ ภูพานทอง
Sumahex
Sumahex
jbersosa
การตกแต่งพื้นหลังให้กับสไลด์
การตกแต่งพื้นหลังให้กับสไลด์
เทวัญ ภูพานทอง
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
เทวัญ ภูพานทอง
Acções acreditadas fevereiro 2012
Acções acreditadas fevereiro 2012
João Lima
การสร้างรูปทรงเรขาคณิต
การสร้างรูปทรงเรขาคณิต
เทวัญ ภูพานทอง
Empfohlen
Sumahexavector
Sumahexavector
jbersosa
Simular un next del recordset en php de forma rudimentaria
Simular un next del recordset en php de forma rudimentaria
jbersosa
การบันทึกและออกจากโปรแกรมMspowerpoint
การบันทึกและออกจากโปรแกรมMspowerpoint
เทวัญ ภูพานทอง
Sumahex
Sumahex
jbersosa
การตกแต่งพื้นหลังให้กับสไลด์
การตกแต่งพื้นหลังให้กับสไลด์
เทวัญ ภูพานทอง
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
เทวัญ ภูพานทอง
Acções acreditadas fevereiro 2012
Acções acreditadas fevereiro 2012
João Lima
การสร้างรูปทรงเรขาคณิต
การสร้างรูปทรงเรขาคณิต
เทวัญ ภูพานทอง
การแทรกรูปภาพ
การแทรกรูปภาพ
เทวัญ ภูพานทอง
Introducción a Bolt
Introducción a Bolt
Asier Marqués
Form Script
Form Script
lotlot
Comparison Principle
Comparison Principle
อิทธิเดช มูลมั่งมี
การแทรกรูปภาพ
การแทรกรูปภาพ
เทวัญ ภูพานทอง
Declaração de Voto da JSD Golegã no Conselho Municipal Juventude Golegã 2012
Declaração de Voto da JSD Golegã no Conselho Municipal Juventude Golegã 2012
jsdgolega
jQuery - Javascript para quem não sabe Javascript
jQuery - Javascript para quem não sabe Javascript
Nando Vieira
Managen van Verwachtingen.
Managen van Verwachtingen.
Groenewoud
Index2
Index2
grateful7
Miniray.php
Miniray.php
maeeeng69
การปรับแต่งตัวอักษร
การปรับแต่งตัวอักษร
เทวัญ ภูพานทอง
Presentación JxNet - Software de Gestión Jurídica Corporativa
Presentación JxNet - Software de Gestión Jurídica Corporativa
Sisem Soluciones de Información S.A
Sumahexavector
Sumahexavector
jbersosa
การแทรกสัญลักษณ์หน้าข้อความ
การแทรกสัญลักษณ์หน้าข้อความ
เทวัญ ภูพานทอง
การแทรกอักษรศิลป์
การแทรกอักษรศิลป์
เทวัญ ภูพานทอง
Ryn January 2011
Ryn January 2011
Deron Johnson
OFFENSE
OFFENSE
BFLLEVEL1
Crea un tema compatibile con le ultime novità WordPress
Crea un tema compatibile con le ultime novità WordPress
SkillsAndMore
The evil consequences of fornication and adultery
The evil consequences of fornication and adultery
Caller To Islam / الداعية الإسلامي
Aeman dee ekkadunnaaru
Aeman dee ekkadunnaaru
venkatesha9
The Settings API
The Settings API
Konstantin Kovshenin
7 Tips for Better WordPress Theme Development
7 Tips for Better WordPress Theme Development
Konstantin Kovshenin
Weitere ähnliche Inhalte
Was ist angesagt?
การแทรกรูปภาพ
การแทรกรูปภาพ
เทวัญ ภูพานทอง
Introducción a Bolt
Introducción a Bolt
Asier Marqués
Form Script
Form Script
lotlot
Comparison Principle
Comparison Principle
อิทธิเดช มูลมั่งมี
การแทรกรูปภาพ
การแทรกรูปภาพ
เทวัญ ภูพานทอง
Declaração de Voto da JSD Golegã no Conselho Municipal Juventude Golegã 2012
Declaração de Voto da JSD Golegã no Conselho Municipal Juventude Golegã 2012
jsdgolega
jQuery - Javascript para quem não sabe Javascript
jQuery - Javascript para quem não sabe Javascript
Nando Vieira
Managen van Verwachtingen.
Managen van Verwachtingen.
Groenewoud
Index2
Index2
grateful7
Miniray.php
Miniray.php
maeeeng69
การปรับแต่งตัวอักษร
การปรับแต่งตัวอักษร
เทวัญ ภูพานทอง
Presentación JxNet - Software de Gestión Jurídica Corporativa
Presentación JxNet - Software de Gestión Jurídica Corporativa
Sisem Soluciones de Información S.A
Sumahexavector
Sumahexavector
jbersosa
การแทรกสัญลักษณ์หน้าข้อความ
การแทรกสัญลักษณ์หน้าข้อความ
เทวัญ ภูพานทอง
การแทรกอักษรศิลป์
การแทรกอักษรศิลป์
เทวัญ ภูพานทอง
Ryn January 2011
Ryn January 2011
Deron Johnson
OFFENSE
OFFENSE
BFLLEVEL1
Crea un tema compatibile con le ultime novità WordPress
Crea un tema compatibile con le ultime novità WordPress
SkillsAndMore
The evil consequences of fornication and adultery
The evil consequences of fornication and adultery
Caller To Islam / الداعية الإسلامي
Aeman dee ekkadunnaaru
Aeman dee ekkadunnaaru
venkatesha9
Was ist angesagt?
(20)
การแทรกรูปภาพ
การแทรกรูปภาพ
Introducción a Bolt
Introducción a Bolt
Form Script
Form Script
Comparison Principle
Comparison Principle
การแทรกรูปภาพ
การแทรกรูปภาพ
Declaração de Voto da JSD Golegã no Conselho Municipal Juventude Golegã 2012
Declaração de Voto da JSD Golegã no Conselho Municipal Juventude Golegã 2012
jQuery - Javascript para quem não sabe Javascript
jQuery - Javascript para quem não sabe Javascript
Managen van Verwachtingen.
Managen van Verwachtingen.
Index2
Index2
Miniray.php
Miniray.php
การปรับแต่งตัวอักษร
การปรับแต่งตัวอักษร
Presentación JxNet - Software de Gestión Jurídica Corporativa
Presentación JxNet - Software de Gestión Jurídica Corporativa
Sumahexavector
Sumahexavector
การแทรกสัญลักษณ์หน้าข้อความ
การแทรกสัญลักษณ์หน้าข้อความ
การแทรกอักษรศิลป์
การแทรกอักษรศิลป์
Ryn January 2011
Ryn January 2011
OFFENSE
OFFENSE
Crea un tema compatibile con le ultime novità WordPress
Crea un tema compatibile con le ultime novità WordPress
The evil consequences of fornication and adultery
The evil consequences of fornication and adultery
Aeman dee ekkadunnaaru
Aeman dee ekkadunnaaru
Andere mochten auch
The Settings API
The Settings API
Konstantin Kovshenin
7 Tips for Better WordPress Theme Development
7 Tips for Better WordPress Theme Development
Konstantin Kovshenin
Road to Platform @ WordPress.com VIP Workshop 2014
Road to Platform @ WordPress.com VIP Workshop 2014
Konstantin Kovshenin
Memory Management in WordPress
Memory Management in WordPress
Konstantin Kovshenin
Things I Wish I Had Known Before Developing a WordPress Theme
Things I Wish I Had Known Before Developing a WordPress Theme
Konstantin Kovshenin
Где брать ИДЕИ для написания постов и плагинов WordPress
Где брать ИДЕИ для написания постов и плагинов WordPress
Misha Rudrastyh
WordPress Plugin Unit Tests (FR - WordCamp Paris 2015)
WordPress Plugin Unit Tests (FR - WordCamp Paris 2015)
Ozh
High Performance WordPress
High Performance WordPress
vnsavage
Вёрстка по методологии БЭМ
Вёрстка по методологии БЭМ
versusbassz
SEO - поведенческие факторы.
SEO - поведенческие факторы.
Pavel Karpov
следите за-языком-20150709
следите за-языком-20150709
Doug Lawrence
Premium-темы WordPress
Premium-темы WordPress
versusbassz
Защищаем WordPress-сайт от хакерских атак
Защищаем WordPress-сайт от хакерских атак
Ruslan Sukhar
WordPress под нагрузкой: масштабирование и отказоустойчивость
WordPress под нагрузкой: масштабирование и отказоустойчивость
Konstantin Kovshenin
WordPress: Getting Under the Hood
WordPress: Getting Under the Hood
Scott Taylor
Пожиратели памяти в WordPress
Пожиратели памяти в WordPress
Konstantin Kovshenin
State of the Word 2014
State of the Word 2014
photomatt
WordPress 4.4 and Beyond
WordPress 4.4 and Beyond
Scott Taylor
State of the Word 2016
State of the Word 2016
photomatt
What Makes Great Infographics
What Makes Great Infographics
SlideShare
Andere mochten auch
(20)
The Settings API
The Settings API
7 Tips for Better WordPress Theme Development
7 Tips for Better WordPress Theme Development
Road to Platform @ WordPress.com VIP Workshop 2014
Road to Platform @ WordPress.com VIP Workshop 2014
Memory Management in WordPress
Memory Management in WordPress
Things I Wish I Had Known Before Developing a WordPress Theme
Things I Wish I Had Known Before Developing a WordPress Theme
Где брать ИДЕИ для написания постов и плагинов WordPress
Где брать ИДЕИ для написания постов и плагинов WordPress
WordPress Plugin Unit Tests (FR - WordCamp Paris 2015)
WordPress Plugin Unit Tests (FR - WordCamp Paris 2015)
High Performance WordPress
High Performance WordPress
Вёрстка по методологии БЭМ
Вёрстка по методологии БЭМ
SEO - поведенческие факторы.
SEO - поведенческие факторы.
следите за-языком-20150709
следите за-языком-20150709
Premium-темы WordPress
Premium-темы WordPress
Защищаем WordPress-сайт от хакерских атак
Защищаем WordPress-сайт от хакерских атак
WordPress под нагрузкой: масштабирование и отказоустойчивость
WordPress под нагрузкой: масштабирование и отказоустойчивость
WordPress: Getting Under the Hood
WordPress: Getting Under the Hood
Пожиратели памяти в WordPress
Пожиратели памяти в WordPress
State of the Word 2014
State of the Word 2014
WordPress 4.4 and Beyond
WordPress 4.4 and Beyond
State of the Word 2016
State of the Word 2016
What Makes Great Infographics
What Makes Great Infographics
Mehr von Konstantin Kovshenin
Scaling out with WordPress
Scaling out with WordPress
Konstantin Kovshenin
7 убийц производительности WordPress
7 убийц производительности WordPress
Konstantin Kovshenin
Будущее WordPress (SPB, 2014)
Будущее WordPress (SPB, 2014)
Konstantin Kovshenin
Будущее WordPress
Будущее WordPress
Konstantin Kovshenin
Как повысить скорость вашего сайта на WordPress
Как повысить скорость вашего сайта на WordPress
Konstantin Kovshenin
Основые безопасности WordPress
Основые безопасности WordPress
Konstantin Kovshenin
Цикл разработки WordPress
Цикл разработки WordPress
Konstantin Kovshenin
P2
P2
Konstantin Kovshenin
Секреты WP_Query
Секреты WP_Query
Konstantin Kovshenin
Mehr von Konstantin Kovshenin
(9)
Scaling out with WordPress
Scaling out with WordPress
7 убийц производительности WordPress
7 убийц производительности WordPress
Будущее WordPress (SPB, 2014)
Будущее WordPress (SPB, 2014)
Будущее WordPress
Будущее WordPress
Как повысить скорость вашего сайта на WordPress
Как повысить скорость вашего сайта на WordPress
Основые безопасности WordPress
Основые безопасности WordPress
Цикл разработки WordPress
Цикл разработки WordPress
P2
P2
Секреты WP_Query
Секреты WP_Query
Templating WordPress
1.
Templating WordPress Konstantin Kovshenin Automattic
2.
3.
4.
author-$nicename.php author-$id.php author.php archive.php paged.php index.php
5.
$templates = array( 'foo.php', 'bar.php', 'baz.php', ); $template
= locate_template( $templates );
6.
function get_sidebar( $name
= null ) { $templates = array(); if ( '' !== $name ) $templates[] = "sidebar-{$name}.php"; $templates[] = 'sidebar.php'; } locate_template( $templates, true );
7.
get_sidebar( 'left' ); //
sidebar-left.php // sidebar.php
8.
get_header( 'foo' ); //
header-foo.php // header.php get_footer( 'bar' ); // footer-bar.php // footer.php
9.
get_template_part( 'foo', 'bar'
); // foo-bar.php // foo.php
10.
get_template_part( 'content', get_post_format() ); // // // // // content-gallery.php content-quote.php content-image.php ... content.php
11.
template-loader.php
12.
if ( is_404() && $template
= get_404_template() ) : elseif ( is_tag() && $template = get_tag_template() ) : elseif ( is_date() && $template = get_date_template() ) : elseif ( is_category() && $template = get_category_template() ) : elseif ( is_author() elseif ( is_archive() elseif ( is_paged() else : && $template = get_author_template() && $template = get_archive_template() && $template = get_paged_template() ) : ) : ) : $template = get_index_template(); endif; if ( $template = apply_filters( 'template_include', $template ) ) include( $template );
13.
if ( is_404() && $template
= get_404_template() ) : elseif ( is_tag() && $template = get_tag_template() ) : elseif ( is_date() && $template = get_date_template() ) : && $template = get_paged_template() ) : elseif ( is_category() && $template = get_category_template() ) : elseif ( is_author() elseif ( is_archive() elseif ( is_paged() else : && $template = get_author_template() && $template = get_archive_template() ) : ) : $template = get_index_template(); endif; if ( $template = apply_filters( 'template_include', $template ) ) include( $template );
14.
if ( is_404() && $template
= get_404_template() ) : elseif ( is_tag() && $template = get_tag_template() ) : elseif ( is_date() && $template = get_date_template() ) : elseif ( is_category() && $template = get_category_template() ) : elseif ( is_author() elseif ( is_archive() elseif ( is_paged() else : && $template = get_author_template() && $template = get_archive_template() && $template = get_paged_template() ) : ) : ) : $template = get_index_template(); endif; if ( $template = apply_filters( 'template_include', $template ) ) include( $template );
15.
if ( is_404() && $template
= get_404_template() ) : elseif ( is_tag() && $template = get_tag_template() ) : elseif ( is_date() && $template = get_date_template() ) : elseif ( is_category() && $template = get_category_template() ) : elseif ( is_author() elseif ( is_archive() elseif ( is_paged() else : && $template = get_author_template() && $template = get_archive_template() && $template = get_paged_template() ) : ) : ) : $template = get_index_template(); endif; if ( $template = apply_filters( 'template_include', $template ) ) include( $template );
16.
// get_author_template() $templates[] =
"author-{$author->nicename}.php"; $templates[] = "author-{$author->ID}.php"; $templates[] = 'author.php'; $template = locate_template( $templates );
17.
if ( is_404() && $template
= get_404_template() ) : elseif ( is_tag() && $template = get_tag_template() ) : elseif ( is_date() && $template = get_date_template() ) : elseif ( is_category() && $template = get_category_template() ) : elseif ( is_author() elseif ( is_archive() elseif ( is_paged() else : && $template = get_author_template() && $template = get_archive_template() && $template = get_paged_template() ) : ) : ) : $template = get_index_template(); endif; if ( $template = apply_filters( 'template_include', $template ) ) include( $template );
18.
if ( $template
= apply_filters( 'template_include', $template ) ) include( $template );
19.
function my_template_include( $template
) { if ( my_is_maintenance() && $located = locate_template( 'maintenance.php' ) ) $template = $located; return $template; } add_filter( 'template_include', 'my_template_include' );
20.
locate_template( array( 'foo.php', 'bar.php',
'baz.php' ) ); // // // // // // child/foo.php parent/foo.php child/bar.php parent/bar.php child/baz.php parent/baz.php
21.
locate_template( 'related-posts.php', true
); // child/related-posts.php // parent/related-posts.php // vs: require get_template_directory() . 'related-posts.php';
22.
wp-includes/template-loader.php wp-includes/general-template.php wp-includes/template.php
23.
kovshenin.com/wcsof2013
Jetzt herunterladen