More Related Content
Similar to 11 word pressカスタマイズ(テーマ編)
Similar to 11 word pressカスタマイズ(テーマ編) (20)
11 word pressカスタマイズ(テーマ編)
- 1. PHP (11)!
WordPress
WordPress
WordPress
- 3. WordPress
wp-‐admin uploads
wp-‐content themes
wp-‐include plugins
10.4.18 (C)
- 4. WordPress
style.css
/*
index.php Theme
Name:
Theme
URI:
URL
Description:
Author:
Version:
*/
style.css
Twenty
Ten
10.4.18 (C)
- 5. …
1.
http://svn.automattic.com/wpcom-‐themes/demo/test-‐data.2010-‐08-‐02.xml
2.
3.
10.4.18 (C)
- 7. 1. WordPress URL
2.
3.
http://wpdocs.sourceforge.jp/%E3%83%86%E3%83%B3%E3%83%97%E3%83%AC
%E3%83%BC%E3%83%88%E9%9A%8E%E5%B1%A4
ex.
1. single.php
2. index.php
10.4.18 (C)
- 9. WordPress
PHP
WordPress PHP
PHP
<?php
the_title();
//
the_content();
//
bloginfo(‘name’);
//
?>
10.4.18 (C)
- 10. WordPress
<?php
if(have_posts()):
while(have_posts()):
the_post();
?>
<?php
endwhile;
endif;
?>
1. WordPress URL
2. DB
3. DB
$posts
4. the_post() $posts $post
5. the_title() $post
10.4.18 (C)
- 11.
(^o^)/
WordPress
var_dump($GLOBALS);
WordPress
10.4.18 (C)
- 12. 1. header
2. home.php
3. 1.
2.
1.
2.
3.
3.
4.
4.
5.
5.
right
column
1.
1.
2.
2.
3.
3.
4.
4.
4.
5.
5.
5
5.
footer
10.4.18 (C)
- 13. WordPress
API
http://wpdocs.sourceforge.jp/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3_API
1.
2.
functions.php
10.4.18 (C)