SlideShare uma empresa Scribd logo
1 de 59
WORDPRESS
PHP
‣
‣

http://www.yuriko.net/
@lilyfanjp
WordPress



http://wordpress.org/download/counter/
WordPress   ?
.org   .com

‣
‣


‣
‣
‣ http://wordpress.org/


‣ http://ja.wordpress.org/
ja.wordpress.org
http://
wordpress.org/
extend/themes/
Twenty Eleven
P2
http://
wordpress.org/
extend/plugins/
Contact Form 7
Ktai Style
wp-tegaki
Syntax Highlighter for WP
PHP
PHP
PHP
PHP
PHP
PHP
Perl ?
Python ?
Ruby ?
WORDPRESS
‣


‣
<link rel="stylesheet" type="text/css" media="all"
href="<?php bloginfo( 'stylesheet_url' ); ?>" />

<body <?php body_class(); ?>>

<h2><?php the_title(); ?></h2>
get_

‣
the_

‣
‣
http://wpdocs.sourceforge.jp/
<?php if ( have_posts() ) : ?>
  <?php twentyeleven_content_nav( 'nav-above' ); ?>
  <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part('content',get_post_format());?>
  <?php endwhile; ?>
  <?php twentyeleven_content_nav( 'nav-below' ); ?>
<?php else : ?>

<?php endif; ?>
‣
do_action(), apply_filters()

http://wpdocs.sourceforge.jp/
function the_content($more_link_text=null,$stripteaser=0, $more_file='') {
  $content = get_the_content($more_link_text, $stripteaser, $more_file);

 $content = apply_filters('the_content', $content);

 $content = str_replace(']]>', ']]&gt;', $content);

 echo $content;
}


function strip_del($content) {

 $content = preg_replace('#<del[^>]*>.*?</del>s*#s',
 '', $content);

 return $content;
}
add_filter('the_content', 'strip_del');
Delete Del
http://wpdocs.sourceforge.jp/
WordPress_            _API
WP_Widget
class My_Widget extends WP_Widget {

   function My_Widget() {

     parent::WP_Widget( 'My_widget', $name = 'My_Widget' );

   }

   function form($instance) {

     //

   }

   function update($new_instance, $old_instance) {

     //

   }

   function widget($args, $instance) {

     //

   }
}
register_widget('My_Widget');
namespace abc;
  class mywidgetclass extends WP_Widget {
    function __construct() {
      parent::__construct('name1', 'name2');
    }
      // ... rest of functions
  }
add_action('widgets_init',function() {
  return register_widget('abcmywidgetclass');
});
WORDPRESS
wpdocs.SF.jp
ja.forums.WP.org
WordBench.org
WordBeach.org
WordBeach
WordCamp KOBE




http://kobe2011.wordcamp.jp

@wckobe2011
WordPress
WordPress
WordPress
‣ http://wordbench.org/register


‣ http://japan.wordcamp.org/
‣
http://www.yuriko.net/tag/
slides/

Mais conteúdo relacionado

Mais de Yuriko IKEDA

Mais de Yuriko IKEDA (20)

端末開発のススメ
端末開発のススメ端末開発のススメ
端末開発のススメ
 
WordPressでIoTをはじめよう
WordPressでIoTをはじめようWordPressでIoTをはじめよう
WordPressでIoTをはじめよう
 
Local 10 周年パーティーに行ってきた話
Local 10 周年パーティーに行ってきた話Local 10 周年パーティーに行ってきた話
Local 10 周年パーティーに行ってきた話
 
Fastest routes from Meisei-univ to Shinjuku
Fastest routes from Meisei-univ to ShinjukuFastest routes from Meisei-univ to Shinjuku
Fastest routes from Meisei-univ to Shinjuku
 
Faster route from Shinjuku to Meisei univ.
Faster route from Shinjuku to Meisei univ.Faster route from Shinjuku to Meisei univ.
Faster route from Shinjuku to Meisei univ.
 
Introduce raspberry pi's 7 years
Introduce raspberry pi's 7 yearsIntroduce raspberry pi's 7 years
Introduce raspberry pi's 7 years
 
WordPress 次期バージョンと日本のコミュニティ
WordPress 次期バージョンと日本のコミュニティWordPress 次期バージョンと日本のコミュニティ
WordPress 次期バージョンと日本のコミュニティ
 
カルト宗教の始め方
カルト宗教の始め方カルト宗教の始め方
カルト宗教の始め方
 
WordCamp Osaka の熱気を可視化してみた
WordCamp Osaka の熱気を可視化してみたWordCamp Osaka の熱気を可視化してみた
WordCamp Osaka の熱気を可視化してみた
 
WordPressで制御するこれからのIoT
WordPressで制御するこれからのIoTWordPressで制御するこれからのIoT
WordPressで制御するこれからのIoT
 
Create LED lightened Wapuu (LEDパネルで光るわぷーを)
Create LED lightened Wapuu (LEDパネルで光るわぷーを)Create LED lightened Wapuu (LEDパネルで光るわぷーを)
Create LED lightened Wapuu (LEDパネルで光るわぷーを)
 
世界No.1 CMS WordPressへのいざない
世界No.1 CMS WordPressへのいざない世界No.1 CMS WordPressへのいざない
世界No.1 CMS WordPressへのいざない
 
LEDマトリックスで光るわぷー(WordPressで指定編その1)
LEDマトリックスで光るわぷー(WordPressで指定編その1)LEDマトリックスで光るわぷー(WordPressで指定編その1)
LEDマトリックスで光るわぷー(WordPressで指定編その1)
 
Scroll pHAT HD に美咲フォント
Scroll pHAT HD に美咲フォントScroll pHAT HD に美咲フォント
Scroll pHAT HD に美咲フォント
 
Raspi intro-20170805
Raspi intro-20170805Raspi intro-20170805
Raspi intro-20170805
 
raspi-led-matrix
raspi-led-matrixraspi-led-matrix
raspi-led-matrix
 
架空鉄道紹介誌の制作
架空鉄道紹介誌の制作架空鉄道紹介誌の制作
架空鉄道紹介誌の制作
 
武器屋の開き方
武器屋の開き方武器屋の開き方
武器屋の開き方
 
Json時刻表とは
Json時刻表とはJson時刻表とは
Json時刻表とは
 
100% GPL
100% GPL100% GPL
100% GPL
 

WordpressとPHPの素敵な関係

Notas do Editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n