11 word pressカスタマイズ(テーマ編)

1,790 views

Published on

PHP講座

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,790
On SlideShare
0
From Embeds
0
Number of Embeds
21
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

11 word pressカスタマイズ(テーマ編)

  1. 1. PHP (11)!WordPress WordPress WordPress
  2. 2. WordPress WordPress Web10.4.18 (C)
  3. 3. WordPress wp-­‐admin uploads wp-­‐content themes wp-­‐include plugins10.4.18 (C)
  4. 4. WordPress style.css   /*   index.php Theme  Name:     Theme  URI:  URL   Description:   Author:     Version:      */ style.css Twenty  Ten  10.4.18 (C)
  5. 5. … 1.    http://svn.automattic.com/wpcom-­‐themes/demo/test-­‐data.2010-­‐08-­‐02.xml   2.    3.   10.4.18 (C)
  6. 6.     (^o^)/10.4.18 (C)
  7. 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)
  8. 8. http://wpdocs.sourceforge.jp/%E3%82%A4%E3%83%B3%E3%82%AF http://wpdocs.sourceforge.jp/Conditional_Tags %E3%83%AB%E3%83%BC%E3%83%89%E3%82%BF%E3%82%B0 <?php  if(is_single()):  ?>   <?php  get_header();  ? <div  id=“single”>   >   </div>   <?php  endif;  ?>  10.4.18 (C)
  9. 9. WordPress   PHP   WordPress PHP   PHP <?php   the_title();  //   the_content();  //   bloginfo(‘name’);    //   ?>  10.4.18 (C)
  10. 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() $post10.4.18 (C)
  11. 11.     (^o^)/ WordPress   var_dump($GLOBALS);   WordPress10.4.18 (C)
  12. 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.    footer10.4.18 (C)
  13. 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.php10.4.18 (C)

×