Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WordPressの仕組みを徹底解説20180421_公開用.pdf

 WordPressの仕組みを徹底解説20180421_公開用.pdf

hikarut

April 21, 2018
Tweet

More Decks by hikarut

Other Decks in Programming

Transcript

  1. αʔόαΠυͱΫϥΠΞϯταΠυ ΫϥΠΞϯταΠυ αʔόαΠυ ϦΫΤετ IUUQ Ϩεϙϯε )5.- ϒϥ΢β αʔό σʔλϕʔε

    ɾ1)1 ɾ3VCZ ɾ1FSM ɾ+BWB ɾ)5.- ɾ$44 ɾ+BWB4DSJQU ɾ.Z42- ɾ0SBDMF ɾ1PTUHSF
  2. 8PSEQSFTTʹ͍ͭͯ ΫϥΠΞϯταΠυ αʔόαΠυ ϦΫΤετ IUUQ Ϩεϙϯε )5.- ϒϥ΢β αʔό σʔλϕʔε

    ɾ)5.- ɾ$44 ɾ+BWB4DSJQU ɾαʔόʹΠϯετʔϧͯ͠࢖͏ ɾແྉͰ࢖͑Δ ɾαʔό্Ͱ1)1Λ࢖ͬͯσʔ λϕʔεͷૢ࡞ɺಈతͳϩδοΫ ͰϖʔδΛ࡞ΕΔ ɾσʔλϕʔε .Z42- ΋ѻ͑ Δ
  3. ϑΝΠϧߏ੒ IUBDDFTT JOEFYQIQ XQBENJO XQDPOUFOU XQJODMVEFT MJDFOTFUYU SFBENFIUNM XQBDUJWBUFQIQ XQCMPHIFBEFSQIQ

    XQDPNNFOUTQPTUQIQ XQDPOpHTBNQMFQIQ XQDPOpHQIQ XQDSPOQIQ XQMJOLTPQNMQIQ XQMPBEQIQ XQMPHJOQIQ XQNBJMQIQ XQTFUUJOHTQIQ XQTJHOVQQIQ XQUSBDLCBDLQIQ YNMSQDQIQ 8PSE1SFTTΛμ΢ϯϩʔυͯ͠[JQϑΝΠϧ Λղౚ͢Δͱ ༷ʑͳϑΝΠϧͱσΟϨΫτϦ͕ೖͬͯΔ
  4. ϑΝΠϧߏ੒ 1)1ϑΝΠϧɿ $44ϑΝΠϧɿ KTϑΝΠϧɿ ܭɿϑΝΠϧ IUBDDFTT JOEFYQIQ XQBENJO XQDPOUFOU XQJODMVEFT

    MJDFOTFUYU SFBENFIUNM XQBDUJWBUFQIQ XQCMPHIFBEFSQIQ XQDPNNFOUTQPTUQIQ XQDPOpHTBNQMFQIQ XQDPOpHQIQ XQDSPOQIQ XQMJOLTPQNMQIQ XQMPBEQIQ XQMPHJOQIQ XQNBJMQIQ XQTFUUJOHTQIQ XQTJHOVQQIQ XQUSBDLCBDLQIQ YNMSQDQIQ 
  5. ϑΝΠϧ໊ छྨ આ໌ IUBDDFTT ϑΝΠϧ ઃఆϑΝΠϧ JOEFYQIQ ϑΝΠϧ Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧ XQBENJO

    σΟϨΫτϦ ؅ཧը໘ܥͷϑΝΠϧ͕֨ೲ͞Ε͍ͯΔϑΥϧμ XQDPOUFOU σΟϨΫτϦ ςʔϚɺϓϥάΠϯɺݴޠͳͲͰߏ੒͞Ε͍ͯΔϑΥϧμ XQJODMVEFT σΟϨΫτϦ APIɺΫϥεɺؔ਺͕֨ೲ͞Ε͍ͯΔϑΥϧμ MJDFOTFUYU ϑΝΠϧ 8PSE1SFTTͷϥΠηϯε͕هࡌ͞Ε͍ͯΔϑΝΠϧ SFBENFIUNM ϑΝΠϧ WordPressͷઆ໌͕ॻ͔Ε͍ͯΔϑΝΠϧ XQBDUJWBUFQIQ ϑΝΠϧ ϢʔβΞΧ΢ϯτͷ༗ޮԽ XQCMPHIFBEFSQIQ ϑΝΠϧ ϫʔυϓϨεͷ؀ڥͱςϯϓϨʔτͷϩʔυ XQDPNNFOUTQPTUQIQ ϑΝΠϧ ίϝϯτΛॻ͖ࠐΉ࣌ʹ࢖͏ϑΝΠϧ XQDPOpHTBNQMFQIQ ϑΝΠϧ ઃఆϑΝΠϧͷαϯϓϧ XQDPOpHQIQ ϑΝΠϧ ઃఆϑΝΠϧ XQDSPOQIQ ϑΝΠϧ PHPʹΑΔٖࣅcron job XQMJOLTPQNMQIQ ϑΝΠϧ ϦϯΫσʔλͷΠϯϙʔτɺΤΫεϙʔτʹ࢖͏ XQMPBEQIQ ϑΝΠϧ ϫʔυϓϨεͷىಈϑΝΠϧ XQMPHJOQIQ ϑΝΠϧ Ϣʔβʔͷొ࿥/ೝূɹύεϫʔυൃߦ/Ϧηοτ XQNBJMQIQ ϑΝΠϧ ϝʔϧʹΑΔϒϩά౤ߘ༻ XQTFUUJOHTQIQ ϑΝΠϧ ϫʔυϓϨε͕ಈͨ͘Ίͷม਺ɾؔ਺ɾΫϥεͷجຊઃఆ XQTJHOVQQIQ ϑΝΠϧ ϒϩά໊ɾϢʔβʔ໊ɾϝʔϧΞυϨεొ࿥ɺݕࡧઃఆ XQUSBDLCBDLQIQ ϑΝΠϧ τϥοΫόοΫ(૬ޓϦϯΫ)༻ϑΝΠϧ YNMSQDQIQ ϑΝΠϧ xmlrpc௨৴(؅ཧը໘Ҏ֎͔Βهࣄͷ౤ߘΛͰ͖ΔΑ͏ʹ͢Δ) ϑΝΠϧߏ੒ɹͬ͘͟Γཧղ
  6. ϑΝΠϧ໊ छྨ આ໌ IUBDDFTT ϑΝΠϧ ઃఆϑΝΠϧ JOEFYQIQ ϑΝΠϧ Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧ XQBENJO

    σΟϨΫτϦ ؅ཧը໘ܥͷϑΝΠϧ͕֨ೲ͞Ε͍ͯΔϑΥϧμ XQDPOUFOU σΟϨΫτϦ ςʔϚɺϓϥάΠϯɺݴޠͳͲͰߏ੒͞Ε͍ͯΔϑΥϧμ XQJODMVEFT σΟϨΫτϦ APIɺΫϥεɺؔ਺͕֨ೲ͞Ε͍ͯΔϑΥϧμ MJDFOTFUYU ϑΝΠϧ 8PSE1SFTTͷϥΠηϯε͕هࡌ͞Ε͍ͯΔϑΝΠϧ SFBENFIUNM ϑΝΠϧ WordPressͷઆ໌͕ॻ͔Ε͍ͯΔϑΝΠϧ XQBDUJWBUFQIQ ϑΝΠϧ ϢʔβΞΧ΢ϯτͷ༗ޮԽ XQCMPHIFBEFSQIQ ϑΝΠϧ ϫʔυϓϨεͷ؀ڥͱςϯϓϨʔτͷϩʔυ XQDPNNFOUTQPTUQIQ ϑΝΠϧ ίϝϯτΛॻ͖ࠐΉ࣌ʹ࢖͏ϑΝΠϧ XQDPOpHTBNQMFQIQ ϑΝΠϧ ઃఆϑΝΠϧͷαϯϓϧ XQDPOpHQIQ ϑΝΠϧ ઃఆϑΝΠϧ XQDSPOQIQ ϑΝΠϧ PHPʹΑΔٖࣅcron job XQMJOLTPQNMQIQ ϑΝΠϧ ϦϯΫσʔλͷΠϯϙʔτɺΤΫεϙʔτʹ࢖͏ XQMPBEQIQ ϑΝΠϧ ϫʔυϓϨεͷىಈϑΝΠϧ XQMPHJOQIQ ϑΝΠϧ Ϣʔβʔͷొ࿥/ೝূɹύεϫʔυൃߦ/Ϧηοτ XQNBJMQIQ ϑΝΠϧ ϝʔϧʹΑΔϒϩά౤ߘ༻ XQTFUUJOHTQIQ ϑΝΠϧ ϫʔυϓϨε͕ಈͨ͘Ίͷม਺ɾؔ਺ɾΫϥεͷجຊઃఆ XQTJHOVQQIQ ϑΝΠϧ ϒϩά໊ɾϢʔβʔ໊ɾϝʔϧΞυϨεొ࿥ɺݕࡧઃఆ XQUSBDLCBDLQIQ ϑΝΠϧ τϥοΫόοΫ(૬ޓϦϯΫ)༻ϑΝΠϧ YNMSQDQIQ ϑΝΠϧ xmlrpc௨৴(؅ཧը໘Ҏ֎͔Βهࣄͷ౤ߘΛͰ͖ΔΑ͏ʹ͢Δ) ϑΝΠϧߏ੒ɹͬ͘͟Γཧղ ͜ͷ͋ͨΓΛϐοΫΞοϓͯ͠આ໌
  7. IUBDDFTT ɾ8FCαʔόʔΛσΟϨΫτϦ୯ҐͰ੍ޚ͢ΔͨΊͷઃఆϑΝΠϧ ɾαΠτʹϦΫΤετ͕དྷͨ࣌ʹԿΛ͢Δ͔Λهࡌ͢ΔେݩͷϑΝΠϧ # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On

    RewriteBase /wordpress_original/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress_original/index.php [L] </IfModule> # END WordPress IUBDDFTTͷத਎
  8. IUBDDFTT ɾ8FCαʔόʔΛσΟϨΫτϦ୯ҐͰ੍ޚ͢ΔͨΊͷઃఆϑΝΠϧ ɾαΠτʹϦΫΤετ͕དྷͨ࣌ʹԿΛ͢Δ͔Λهࡌ͢ΔେݩͷϑΝΠϧ # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On

    RewriteBase /wordpress_original/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress_original/index.php [L] </IfModule> # END WordPress IUBDDFTTͷத਎ ɾNPE@SFXSJUFͱ͸"QBDIFͱ͍͏IUUQαʔόͰར༻͞Ε͍ͯΔϞδϡʔϧͱݴ ΘΕΔ΋ͷ ɾ63-ͷॻ͖׵͑ϦμΠϨΫτॲཧΛߦͳͬͯ͘ΕΔ
  9. IUBDDFTT ɾ8FCαʔόʔΛσΟϨΫτϦ୯ҐͰ੍ޚ͢ΔͨΊͷઃఆϑΝΠϧ ɾαΠτʹϦΫΤετ͕དྷͨ࣌ʹԿΛ͢Δ͔Λهࡌ͢ΔେݩͷϑΝΠϧ # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On

    RewriteBase /wordpress_original/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress_original/index.php [L] </IfModule> # END WordPress IUBDDFTTͷத਎ XPSEQSFTT@PSJHJOBMʹϦΫΤετ͕དྷͨΒJOEFYQIQΛ࣮ߦ͠·͢ͱ͍͏هड़
  10. JOEFYQIQ <?php /** * Front to the WordPress application. This

    file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); ɾΞΫηε͕དྷͨ࣌ʹҰ൪࠷ॳʹ࣮ߦ͞ΕΔϑΝΠϧ
  11. JOEFYQIQ <?php /** * Front to the WordPress application. This

    file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); ɾΞΫηε͕དྷͨ࣌ʹҰ൪࠷ॳʹ࣮ߦ͞ΕΔϑΝΠϧ XQCMPHIFBEFSQIQΛಡΈࠐΉ
  12. XQCMPHIFBEFSQIQ <?php /** * Loads the WordPress environment and template.

    * * @package WordPress */ if ( !isset($wp_did_header) ) { $wp_did_header = true; // Load the WordPress library. require_once( dirname(__FILE__) . '/wp-load.php' ); // Set up the WordPress query. wp(); // Load the theme template. require_once( ABSPATH . WPINC . '/template-loader.php' ); }
  13. XQCMPHIFBEFSQIQ <?php /** * Loads the WordPress environment and template.

    * * @package WordPress */ if ( !isset($wp_did_header) ) { $wp_did_header = true; // Load the WordPress library. require_once( dirname(__FILE__) . '/wp-load.php' ); // Set up the WordPress query. wp(); // Load the theme template. require_once( ABSPATH . WPINC . '/template-loader.php' ); } XQMPBEQIQΛಡΈࠐΉ UFNQMBUFMPBEFSQIQΛಡΈࠐΉ
  14. ؆୯ͳॲཧͷྲྀΕ ΫϥΠΞϯταΠυ αʔόαΠυ IUUQMPDBMIPTUXPSEQSFTT@PSJHJOBM ϒϥ΢β αʔό ᶃϒϥ΢β͔ΒϦΫΤετ ᶄ JOEFYQIQΛ࣮ߦ ˣ

    XQCMPHIFBEFSQIQΛ࣮ߦ ˣ XQMPBEQIQΛ࣮ߦ ˣ UFNQMBUFMPBEFSQIQΛ࣮ߦ ˣ ᶅϒϥ΢βʹϖʔδ͕දࣔ͞ΕΔ
  15. JOEFYQIQ <?php /** * Front to the WordPress application. This

    file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); ɾΞΫηε͕དྷͨ࣌ʹҰ൪࠷ॳʹ࣮ߦ͞ΕΔϑΝΠϧ JOEFYQIQ͕࣮ߦ͞ΕΔͱͦΕҎ֎ͷେྔͷϑΝΠϧͷಡΈࠐΈ͕࢝·Δ
  16. JOEFYQIQ <?php /** * Front to the WordPress application. This

    file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); HFU@JODMVEFE@pMFT ͰԿͷϑΝΠϧ͕ಡΈࠐ·Ε͍ͯΔ͔֬ೝͰ͖Δ ɾΞΫηε͕དྷͨ࣌ʹҰ൪࠷ॳʹ࣮ߦ͞ΕΔϑΝΠϧ
  17. JOEFYQIQ <?php /** * Front to the WordPress application. This

    file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' ); error_log(print_r(get_included_files(), true)); ࠷ऴߦʹHFU@JODMVEFE@pMFTΛ௥Ճ FSSPS@MPHͰ݁ՌΛϩάϑΝΠϧʹग़ྗ ɾΞΫηε͕དྷͨ࣌ʹҰ൪࠷ॳʹ࣮ߦ͞ΕΔϑΝΠϧ
  18. JOEFYQIQ  <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMJOEFYQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQCMPHIFBEFSQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQMPBEQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQDPOpHQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQTFUUJOHTQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQJODMVEFTMPBEQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQJODMVEFTEFGBVMUDPOTUBOUTQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQJODMVEFTQMVHJOQIQ

    <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQJODMVEFTDMBTTXQIPPLQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQJODMVEFTWFSTJPOQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQJODMVEFTDPNQBUQIQ <>"QQMJDBUJPOT.".1IUEPDTXPSEQSFTT@PSJHJOBMXQJODMVEFTDMBTTXQMJTUVU ɾ ɾ ɾ ɾQIQͷΤϥʔϩάΛ֬ೝ͢Δ .BDͰ.".1Λ࢖͍ͬͯΔ৔߹͸"QQMJDBUJPOT.".1MPHTQIQ@FSSPSMPH JOEFYQIQ͕࣮ߦ͞ΕΔͱͦΕҎ֎ͷϑΝΠϧͷಡΈࠐΈ͕࢝·Δ
  19. ؆୯ͳॲཧͷྲྀΕ ΫϥΠΞϯταΠυ αʔόαΠυ IUUQMPDBMIPTUXPSEQSFTT@PSJHJOBM ϒϥ΢β αʔό ᶃϒϥ΢β͔ΒϦΫΤετ ᶄ JOEFYQIQΛ࣮ߦ ˣ

    ܭϑΝΠϧ͕ಡΈࠐ·Εͯॲཧ͞ΕΔ XQCMPHIFBEFSQIQ XQMPBEQIQ UFNQMBUFMPBEFSQIQ ͳͲ ᶅϒϥ΢βʹϖʔδ͕දࣔ͞ΕΔ
  20. ͨͱ͑͹JOEFYQIQΛमਖ਼ͯ͠ΈΔ <?php /** * Front to the WordPress application. This

    file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require( dirname( __FILE__ ) . '/wp-blog-header.php' );
  21. ͨͱ͑͹JOEFYQIQΛमਖ਼ͯ͠ΈΔ <?php /** * Front to the WordPress application. This

    file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ //require( dirname( __FILE__ ) . '/wp-blog-header.php' ); echo "hogehoge"; ϑΝΠϧͷSFRVJSFΛ΍Ίͯ จࣈྻग़ྗͤͯ͞ΈΔ
  22. ϑΝΠϧ໊ छྨ આ໌ IUBDDFTT ϑΝΠϧ ઃఆϑΝΠϧ JOEFYQIQ ϑΝΠϧ Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧ XQBENJO

    σΟϨΫτϦ ؅ཧը໘ܥͷϑΝΠϧ͕֨ೲ͞Ε͍ͯΔϑΥϧμ XQDPOUFOU σΟϨΫτϦ ςʔϚɺϓϥάΠϯɺݴޠͳͲͰߏ੒͞Ε͍ͯΔϑΥϧμ XQJODMVEFT σΟϨΫτϦ APIɺΫϥεɺؔ਺͕֨ೲ͞Ε͍ͯΔϑΥϧμ MJDFOTFUYU ϑΝΠϧ 8PSE1SFTTͷϥΠηϯε͕هࡌ͞Ε͍ͯΔϑΝΠϧ SFBENFIUNM ϑΝΠϧ WordPressͷઆ໌͕ॻ͔Ε͍ͯΔϑΝΠϧ XQBDUJWBUFQIQ ϑΝΠϧ ϢʔβΞΧ΢ϯτͷ༗ޮԽ XQCMPHIFBEFSQIQ ϑΝΠϧ ϫʔυϓϨεͷ؀ڥͱςϯϓϨʔτͷϩʔυ XQDPNNFOUTQPTUQIQ ϑΝΠϧ ίϝϯτΛॻ͖ࠐΉ࣌ʹ࢖͏ϑΝΠϧ XQDPOpHTBNQMFQIQ ϑΝΠϧ ઃఆϑΝΠϧͷαϯϓϧ XQDPOpHQIQ ϑΝΠϧ ઃఆϑΝΠϧ XQDSPOQIQ ϑΝΠϧ PHPʹΑΔٖࣅcron job XQMJOLTPQNMQIQ ϑΝΠϧ ϦϯΫσʔλͷΠϯϙʔτɺΤΫεϙʔτʹ࢖͏ XQMPBEQIQ ϑΝΠϧ ϫʔυϓϨεͷىಈϑΝΠϧ XQMPHJOQIQ ϑΝΠϧ Ϣʔβʔͷొ࿥/ೝূɹύεϫʔυൃߦ/Ϧηοτ XQNBJMQIQ ϑΝΠϧ ϝʔϧʹΑΔϒϩά౤ߘ༻ XQTFUUJOHTQIQ ϑΝΠϧ ϫʔυϓϨε͕ಈͨ͘Ίͷม਺ɾؔ਺ɾΫϥεͷجຊઃఆ XQTJHOVQQIQ ϑΝΠϧ ϒϩά໊ɾϢʔβʔ໊ɾϝʔϧΞυϨεొ࿥ɺݕࡧઃఆ XQUSBDLCBDLQIQ ϑΝΠϧ τϥοΫόοΫ(૬ޓϦϯΫ)༻ϑΝΠϧ YNMSQDQIQ ϑΝΠϧ xmlrpc௨৴(؅ཧը໘Ҏ֎͔Βهࣄͷ౤ߘΛͰ͖ΔΑ͏ʹ͢Δ) ϑΝΠϧߏ੒ɹͬ͘͟Γཧղ
  23. ϑΝΠϧ໊ छྨ આ໌ IUBDDFTT ϑΝΠϧ ઃఆϑΝΠϧ JOEFYQIQ ϑΝΠϧ Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧ XQBENJO

    σΟϨΫτϦ ؅ཧը໘ܥͷϑΝΠϧ͕֨ೲ͞Ε͍ͯΔϑΥϧμ XQDPOUFOU σΟϨΫτϦ ςʔϚɺϓϥάΠϯɺݴޠͳͲͰߏ੒͞Ε͍ͯΔϑΥϧμ XQJODMVEFT σΟϨΫτϦ APIɺΫϥεɺؔ਺͕֨ೲ͞Ε͍ͯΔϑΥϧμ MJDFOTFUYU ϑΝΠϧ 8PSE1SFTTͷϥΠηϯε͕هࡌ͞Ε͍ͯΔϑΝΠϧ SFBENFIUNM ϑΝΠϧ WordPressͷઆ໌͕ॻ͔Ε͍ͯΔϑΝΠϧ XQBDUJWBUFQIQ ϑΝΠϧ ϢʔβΞΧ΢ϯτͷ༗ޮԽ XQCMPHIFBEFSQIQ ϑΝΠϧ ϫʔυϓϨεͷ؀ڥͱςϯϓϨʔτͷϩʔυ XQDPNNFOUTQPTUQIQ ϑΝΠϧ ίϝϯτΛॻ͖ࠐΉ࣌ʹ࢖͏ϑΝΠϧ XQDPOpHTBNQMFQIQ ϑΝΠϧ ઃఆϑΝΠϧͷαϯϓϧ XQDPOpHQIQ ϑΝΠϧ ઃఆϑΝΠϧ XQDSPOQIQ ϑΝΠϧ PHPʹΑΔٖࣅcron job XQMJOLTPQNMQIQ ϑΝΠϧ ϦϯΫσʔλͷΠϯϙʔτɺΤΫεϙʔτʹ࢖͏ XQMPBEQIQ ϑΝΠϧ ϫʔυϓϨεͷىಈϑΝΠϧ XQMPHJOQIQ ϑΝΠϧ Ϣʔβʔͷొ࿥/ೝূɹύεϫʔυൃߦ/Ϧηοτ XQNBJMQIQ ϑΝΠϧ ϝʔϧʹΑΔϒϩά౤ߘ༻ XQTFUUJOHTQIQ ϑΝΠϧ ϫʔυϓϨε͕ಈͨ͘Ίͷม਺ɾؔ਺ɾΫϥεͷجຊઃఆ XQTJHOVQQIQ ϑΝΠϧ ϒϩά໊ɾϢʔβʔ໊ɾϝʔϧΞυϨεొ࿥ɺݕࡧઃఆ XQUSBDLCBDLQIQ ϑΝΠϧ τϥοΫόοΫ(૬ޓϦϯΫ)༻ϑΝΠϧ YNMSQDQIQ ϑΝΠϧ xmlrpc௨৴(؅ཧը໘Ҏ֎͔Βهࣄͷ౤ߘΛͰ͖ΔΑ͏ʹ͢Δ) ϑΝΠϧߏ੒ɹͬ͘͟Γཧղ ςʔϚҎ֎ͷϑΝΠϧ͸جຊతʹ৮Βͳ͍ํ͕ྑ͍
  24. ϑΝΠϧ໊ छྨ આ໌ IUBDDFTT ϑΝΠϧ ઃఆϑΝΠϧ JOEFYQIQ ϑΝΠϧ Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧ XQBENJO

    σΟϨΫτϦ ؅ཧը໘ܥͷϑΝΠϧ͕֨ೲ͞Ε͍ͯΔϑΥϧμ XQDPOUFOU σΟϨΫτϦ ςʔϚɺϓϥάΠϯɺݴޠͳͲͰߏ੒͞Ε͍ͯΔϑΥϧμ XQJODMVEFT σΟϨΫτϦ APIɺΫϥεɺؔ਺͕֨ೲ͞Ε͍ͯΔϑΥϧμ MJDFOTFUYU ϑΝΠϧ 8PSE1SFTTͷϥΠηϯε͕هࡌ͞Ε͍ͯΔϑΝΠϧ SFBENFIUNM ϑΝΠϧ WordPressͷઆ໌͕ॻ͔Ε͍ͯΔϑΝΠϧ XQBDUJWBUFQIQ ϑΝΠϧ ϢʔβΞΧ΢ϯτͷ༗ޮԽ XQCMPHIFBEFSQIQ ϑΝΠϧ ϫʔυϓϨεͷ؀ڥͱςϯϓϨʔτͷϩʔυ XQDPNNFOUTQPTUQIQ ϑΝΠϧ ίϝϯτΛॻ͖ࠐΉ࣌ʹ࢖͏ϑΝΠϧ XQDPOpHTBNQMFQIQ ϑΝΠϧ ઃఆϑΝΠϧͷαϯϓϧ XQDPOpHQIQ ϑΝΠϧ ઃఆϑΝΠϧ XQDSPOQIQ ϑΝΠϧ PHPʹΑΔٖࣅcron job XQMJOLTPQNMQIQ ϑΝΠϧ ϦϯΫσʔλͷΠϯϙʔτɺΤΫεϙʔτʹ࢖͏ XQMPBEQIQ ϑΝΠϧ ϫʔυϓϨεͷىಈϑΝΠϧ XQMPHJOQIQ ϑΝΠϧ Ϣʔβʔͷొ࿥/ೝূɹύεϫʔυൃߦ/Ϧηοτ XQNBJMQIQ ϑΝΠϧ ϝʔϧʹΑΔϒϩά౤ߘ༻ XQTFUUJOHTQIQ ϑΝΠϧ ϫʔυϓϨε͕ಈͨ͘Ίͷม਺ɾؔ਺ɾΫϥεͷجຊઃఆ XQTJHOVQQIQ ϑΝΠϧ ϒϩά໊ɾϢʔβʔ໊ɾϝʔϧΞυϨεొ࿥ɺݕࡧઃఆ XQUSBDLCBDLQIQ ϑΝΠϧ τϥοΫόοΫ(૬ޓϦϯΫ)༻ϑΝΠϧ YNMSQDQIQ ϑΝΠϧ xmlrpc௨৴(؅ཧը໘Ҏ֎͔Βهࣄͷ౤ߘΛͰ͖ΔΑ͏ʹ͢Δ) ϑΝΠϧߏ੒ɹͬ͘͟Γཧղ
  25. ϑΝΠϧ໊ छྨ આ໌ IUBDDFTT ϑΝΠϧ ઃఆϑΝΠϧ JOEFYQIQ ϑΝΠϧ Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧ XQBENJO

    σΟϨΫτϦ ؅ཧը໘ܥͷϑΝΠϧ͕֨ೲ͞Ε͍ͯΔϑΥϧμ XQDPOUFOU σΟϨΫτϦ ςʔϚɺϓϥάΠϯɺݴޠͳͲͰߏ੒͞Ε͍ͯΔϑΥϧμ XQJODMVEFT σΟϨΫτϦ APIɺΫϥεɺؔ਺͕֨ೲ͞Ε͍ͯΔϑΥϧμ MJDFOTFUYU ϑΝΠϧ 8PSE1SFTTͷϥΠηϯε͕هࡌ͞Ε͍ͯΔϑΝΠϧ SFBENFIUNM ϑΝΠϧ WordPressͷઆ໌͕ॻ͔Ε͍ͯΔϑΝΠϧ XQBDUJWBUFQIQ ϑΝΠϧ ϢʔβΞΧ΢ϯτͷ༗ޮԽ XQCMPHIFBEFSQIQ ϑΝΠϧ ϫʔυϓϨεͷ؀ڥͱςϯϓϨʔτͷϩʔυ XQDPNNFOUTQPTUQIQ ϑΝΠϧ ίϝϯτΛॻ͖ࠐΉ࣌ʹ࢖͏ϑΝΠϧ XQDPOpHTBNQMFQIQ ϑΝΠϧ ઃఆϑΝΠϧͷαϯϓϧ XQDPOpHQIQ ϑΝΠϧ ઃఆϑΝΠϧ XQDSPOQIQ ϑΝΠϧ PHPʹΑΔٖࣅcron job XQMJOLTPQNMQIQ ϑΝΠϧ ϦϯΫσʔλͷΠϯϙʔτɺΤΫεϙʔτʹ࢖͏ XQMPBEQIQ ϑΝΠϧ ϫʔυϓϨεͷىಈϑΝΠϧ XQMPHJOQIQ ϑΝΠϧ Ϣʔβʔͷొ࿥/ೝূɹύεϫʔυൃߦ/Ϧηοτ XQNBJMQIQ ϑΝΠϧ ϝʔϧʹΑΔϒϩά౤ߘ༻ XQTFUUJOHTQIQ ϑΝΠϧ ϫʔυϓϨε͕ಈͨ͘Ίͷม਺ɾؔ਺ɾΫϥεͷجຊઃఆ XQTJHOVQQIQ ϑΝΠϧ ϒϩά໊ɾϢʔβʔ໊ɾϝʔϧΞυϨεొ࿥ɺݕࡧઃఆ XQUSBDLCBDLQIQ ϑΝΠϧ τϥοΫόοΫ(૬ޓϦϯΫ)༻ϑΝΠϧ YNMSQDQIQ ϑΝΠϧ xmlrpc௨৴(؅ཧը໘Ҏ֎͔Βهࣄͷ౤ߘΛͰ͖ΔΑ͏ʹ͢Δ) ϑΝΠϧߏ੒ɹͬ͘͟Γཧղ ςʔϚ͕ೖ͍ͬͯΔσΟϨΫτϦ
  26. ςʔϚϑΝΠϧɹͬ͘͟Γղઆ छྨ ϑΝΠϧ໊ ֓ཁ ϖʔδϑΝΠϧ index.php Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧɻτοϓϖʔδ page.php ݻఆϖʔδ single.php

    ݸผϖʔδ archive.php ΞʔΧΠϒϖʔδ search.php ݕࡧ݁Ռϖʔδ 404.php 404Τϥʔϖʔδ(ϖʔδ͕͋Γ·ͤΜϖʔδ) ϖʔδΛߏ੒͢ΔϑΝΠϧ header.php ϔομʔΛߏ੒͢ΔϑΝΠϧ sidebar.php αΠυόʔΛߏ੒͢ΔϑΝΠϧ footer.php ϑολʔΛߏ੒͢ΔϑΝΠϧ ελΠϧγʔτ style.css جຊσβΠϯͷελΠϧγʔτ ΠϝʔδϑΥϧμ images ࢖༻͢Δը૾ϑΥϧμ ػೳϑΝΠϧ function.php ςʔϚʹඞཁͳػೳΛॻ͘ϑΝΠϧ
  27. छྨ ϑΝΠϧ໊ ֓ཁ ϖʔδϑΝΠϧ index.php Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧɻτοϓϖʔδ page.php ݻఆϖʔδ single.php ݸผϖʔδ

    archive.php ΞʔΧΠϒϖʔδ search.php ݕࡧ݁Ռϖʔδ 404.php 404Τϥʔϖʔδ(ϖʔδ͕͋Γ·ͤΜϖʔδ) ϖʔδΛߏ੒͢ΔϑΝΠϧ header.php ϔομʔΛߏ੒͢ΔϑΝΠϧ sidebar.php αΠυόʔΛߏ੒͢ΔϑΝΠϧ footer.php ϑολʔΛߏ੒͢ΔϑΝΠϧ ελΠϧγʔτ style.css جຊσβΠϯͷελΠϧγʔτ ΠϝʔδϑΥϧμ images ࢖༻͢Δը૾ϑΥϧμ ػೳϑΝΠϧ function.php ςʔϚʹඞཁͳػೳΛॻ͘ϑΝΠϧ ςʔϚϑΝΠϧɹͬ͘͟Γղઆ ͜ͷͭͷϑΝΠϧ͕͋Ε͹ςʔϚ͸࡞ΕΔ
  28. छྨ ϑΝΠϧ໊ ֓ཁ ϖʔδϑΝΠϧ index.php Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧɻτοϓϖʔδ page.php ݻఆϖʔδ single.php ݸผϖʔδ

    archive.php ΞʔΧΠϒϖʔδ search.php ݕࡧ݁Ռϖʔδ 404.php 404Τϥʔϖʔδ(ϖʔδ͕͋Γ·ͤΜϖʔδ) ϖʔδΛߏ੒͢ΔϑΝΠϧ header.php ϔομʔΛߏ੒͢ΔϑΝΠϧ sidebar.php αΠυόʔΛߏ੒͢ΔϑΝΠϧ footer.php ϑολʔΛߏ੒͢ΔϑΝΠϧ ελΠϧγʔτ style.css جຊσβΠϯͷελΠϧγʔτ ΠϝʔδϑΥϧμ images ࢖༻͢Δը૾ϑΥϧμ ػೳϑΝΠϧ function.php ςʔϚʹඞཁͳػೳΛॻ͘ϑΝΠϧ ςʔϚϑΝΠϧɹͬ͘͟Γղઆ ϐοΫΞοϓͯ͠આ໌
  29. ςʔϚϑΝΠϧɹJOEFYQIQ <?php /** * The main template file * *

    This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Sixteen * @since Twenty Sixteen 1.0 */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <?php if ( is_home() && ! is_front_page() ) : ?> <header> <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> </header> <?php endif; ?> <?php // Start the loop. while ( have_posts() ) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'template-parts/content', get_post_format() ); // End the loop. endwhile; // Previous/next page navigation. the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'twentysixteen' ), 'next_text' => __( 'Next page', 'twentysixteen' ), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>', ) ); // If no content, include the "No posts found" template. else : get_template_part( 'template-parts/content', 'none' ); endif; ?> </main><!-- .site-main --> </div><!-- .content-area --> <?php get_sidebar(); ?> <?php get_footer(); ?>
  30. ςʔϚϑΝΠϧɹJOEFYQIQ <?php /** * The main template file * *

    This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Sixteen * @since Twenty Sixteen 1.0 */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <?php if ( is_home() && ! is_front_page() ) : ?> <header> ɾ8PSE1SFTTͰ಺Ͱ࢖ΘΕΔؔ਺ ɾςʔϚʹ͋ΔʮIFBEFSQIQʯΛಡΈࠐΉ ɾKT΍DTTɺڞ௨ϔʔμΛಡΈࠐΉ
  31. ςʔϚϑΝΠϧɹJOEFYQIQ // If no content, include the "No posts found"

    template. else : get_template_part( 'template-parts/content', 'none' ); endif; ?> </main><!-- .site-main --> </div><!-- .content-area --> <?php get_sidebar(); ?> <?php get_footer(); ?> ɾ8PSE1SFTTͰ಺Ͱ࢖ΘΕΔؔ਺ ɾαΠυόʔͱϑολʔͷಡΈࠐΈ ɾʮTJEFCBSQIQʯͱʮGPPUFSQIQʯΛಡΈࠐΉ
  32. ςʔϚϑΝΠϧɹJOEFYQIQ <?php // Start the loop. while ( have_posts() )

    : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'template-parts/content', get_post_format() ); // End the loop. endwhile; // Previous/next page navigation. the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'twentysixteen' ), 'next_text' => __( 'Next page', 'twentysixteen' ), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>', ) ); // If no content, include the "No posts found" template. else : get_template_part( 'template-parts/content', 'none' ); endif; ?> ɾ8PSE1SFTTͰ಺Ͱ࢖ΘΕΔؔ਺ ɾ౤ߘ಺༰ͷදࣔʹ࢖ΘΕΔ ɾϧʔϓ಺Ͱ࢖ΘΕΔؔ਺ ɾUIF@DPOUFOU ͳͲͱ߹Θͤͯ࢖ΘΕΔ
  33. ςʔϚϑΝΠϧɹJOEFYQIQ <?php // Start the loop. while ( have_posts() )

    : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'template-parts/content', get_post_format() ); // End the loop. endwhile; // Previous/next page navigation. the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'twentysixteen' ), 'next_text' => __( 'Next page', 'twentysixteen' ), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>', ) ); // If no content, include the "No posts found" template. else : get_template_part( 'template-parts/content', 'none' ); endif; ?> ɾςϯϓϨʔτͷಡΈࠐΈ ɾಡΈࠐ·Ε͍ͯΔςϯϓϨʔτ಺෦ͰUIF@DPOUFOU ͕࢖Θ Ε͍ͯΔ
  34. ςʔϚϑΝΠϧɹͬ͘͟Γղઆ छྨ ϑΝΠϧ໊ ֓ཁ ϖʔδϑΝΠϧ index.php Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧɻτοϓϖʔδ page.php ݻఆϖʔδ single.php

    ݸผϖʔδ archive.php ΞʔΧΠϒϖʔδ search.php ݕࡧ݁Ռϖʔδ 404.php 404Τϥʔϖʔδ(ϖʔδ͕͋Γ·ͤΜϖʔδ) ϖʔδΛߏ੒͢ΔϑΝΠϧ header.php ϔομʔΛߏ੒͢ΔϑΝΠϧ sidebar.php αΠυόʔΛߏ੒͢ΔϑΝΠϧ footer.php ϑολʔΛߏ੒͢ΔϑΝΠϧ ελΠϧγʔτ style.css جຊσβΠϯͷελΠϧγʔτ ΠϝʔδϑΥϧμ images ࢖༻͢Δը૾ϑΥϧμ ػೳϑΝΠϧ function.php ςʔϚʹඞཁͳػೳΛॻ͘ϑΝΠϧ ·ͣ͸࠷খߏ੒ͰςʔϚΛ࡞ͬͯΈΔ
  35. ϑΝΠϧΛ௥Ճ͢Δ छྨ ϑΝΠϧ໊ ֓ཁ ϖʔδϑΝΠϧ index.php Ұ൪࠷ॳʹΞΫηε͞ΕΔϑΝΠϧɻτοϓϖʔδ page.php ݻఆϖʔδ single.php

    ݸผϖʔδ archive.php ΞʔΧΠϒϖʔδ search.php ݕࡧ݁Ռϖʔδ 404.php 404Τϥʔϖʔδ(ϖʔδ͕͋Γ·ͤΜϖʔδ) ϖʔδΛߏ੒͢ΔϑΝΠϧ header.php ϔομʔΛߏ੒͢ΔϑΝΠϧ sidebar.php αΠυόʔΛߏ੒͢ΔϑΝΠϧ footer.php ϑολʔΛߏ੒͢ΔϑΝΠϧ ελΠϧγʔτ style.css جຊσβΠϯͷελΠϧγʔτ ΠϝʔδϑΥϧμ images ࢖༻͢Δը૾ϑΥϧμ ػೳϑΝΠϧ function.php ςʔϚʹඞཁͳػೳΛॻ͘ϑΝΠϧ
  36. JOEFYQIQΛमਖ਼ <?php get_header(); ?> <div class="container"> <div class="left"> Top Page

    </div> <div class="contents"> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?>
  37. <?php get_header(); ?> <div class="container"> <div class="left"> Top Page </div>

    <div class="contents"> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?> JOEFYQIQɹղઆ IFBEFSϑΝΠϧͷಡΈࠐΈ
  38. <?php get_header(); ?> <div class="container"> <div class="left"> Top Page </div>

    <div class="contents"> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?> JOEFYQIQɹղઆ ɾϝΠϯ෦෼ ɾΧϥϜʹͯ͠ӈαΠυʹαΠυόʔΛදࣔ
  39. <?php get_header(); ?> <div class="container"> <div class="left"> Top Page </div>

    <div class="contents"> <?php get_sidebar(); ?> </div> </div> <?php get_footer(); ?> JOEFYQIQɹղઆ GPPUFSϑΝΠϧͷಡΈࠐΈ
  40. <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <?php wp_head(); ?>

    </head> ɾ8PSE1SFTTڞ௨ͷϔομʔΛಡΈࠐΈ ɾK2VFSZ΍DTTͳͲΛಡΈࠐΉ ɾGVODUJPOQIQͰఆٛͨ͠ಠࣗͷDTTͷಡΈࠐΈ΋͢Δ IFBEFSQIQɹղઆ
  41. QBHFQIQΛमਖ਼ ݻఆϖʔδ <?php get_header(); ?> <div> Page <?php if (have_posts())

    { ?> <?php while (have_posts()) : the_post(); endwhile; ?> <?php the_content(); ?> <?php } ?> </div> <?php get_footer(); ?>
  42. <?php get_header(); ?> <div> Page <?php if (have_posts()) { ?>

    <?php while (have_posts()) : the_post(); endwhile; ?> <?php the_content(); ?> <?php } ?> </div> <?php get_footer(); ?> QBHFQIQɹղઆ ɾIFBEFS GPPUFSͷಡΈࠐΈ
  43. <?php get_header(); ?> <div> Page <?php if (have_posts()) { ?>

    <?php while (have_posts()) : the_post(); endwhile; ?> <?php the_content(); ?> <?php } ?> </div> <?php get_footer(); ?> QBHFQIQɹղઆ ɾ౤ߘ͞Εͨ಺༰Λදࣔ
  44. TUZMFDTTΛमਖ਼ /* * Theme Name: themeSample * Description: sample *

    Author: hoge hoge * Version: 1.0.0 */ .container{ display: flex; } .left{ width: 300px; } .contents{ flex: 1; }
  45. /* * Theme Name: themeSample * Description: sample * Author:

    hoge hoge * Version: 1.0.0 */ .container{ display: flex; } .left{ width: 300px; } .contents{ flex: 1; } ɾςʔϚͷઆ໌Λهࡌ ɾͳͯ͘΋໰୊͸ͳ͍ ˞[JQԽͯ͠ςʔϚΛΞοϓϩʔ υ͢Δ৔߹͸ඞਢ TUZMFDTTɹղઆ
  46. /* * Theme Name: themeSample * Description: sample * Author:

    hoge hoge * Version: 1.0.0 */ .container{ display: flex; } .left{ width: 300px; } .contents{ flex: 1; } TUZMFDTTɹղઆ ɾσβΠϯʹ߹Θͤͨ೚ҙͷDTTΛهड़͢Δ ɾ͜͜Ͱ͸τοϓϖʔδ͕ΧϥϜʹͳΔΑ͏ͳDTTΛهड़
  47. GVODUJPOQIQΛमਖ਼ <?php add_action('wp_enqueue_scripts', 'add_stylesheet'); function add_stylesheet() { wp_enqueue_style('style', get_template_directory_uri() .

    '/style.css'); } ?> ɾXQ@FORVFVF@TDSJQUTؔ਺͕࣮ߦ͞ΕͨΒBEE@TUZMFTIFFUΛ ࣮ߦ͢Δ ɾXQ@FORVFVF@TDSJQUT͸ϫʔυϓϨεͷඪ४ؔ਺ɻґଘؔ܎ʹ ैͬͯεΫϦϓτϑΝΠϧΛʮॏෳ͠ͳ͍Α͏ʹʯ·ͨʮద੾ͳॱ ൪ʯͰಡΈࠐΉΑ͏ʹ੍ޚͯ͘͠ΕΔؔ਺
  48. GVODUJPOQIQΛमਖ਼ <?php add_action('wp_enqueue_scripts', 'add_stylesheet'); function add_stylesheet() { wp_enqueue_style('style', get_template_directory_uri() .

    '/style.css'); } ?> ɾXQ@FORVFVF@TUZMF͸DTTͷಡΈࠐΈΛΩϡʔʹ௥Ճ͢Δ ɾHFU@UFNQMBUF@EJSFDUPSZ@VSJ͸༗ޮԽ͍ͯ͠ΔσΟϨΫτϦΛ ࣔ͢
  49. GVODUJPOQIQΛमਖ਼ <?php add_action('wp_enqueue_scripts', 'add_stylesheet'); function add_stylesheet() { wp_enqueue_style('style', get_template_directory_uri() .

    '/style.css'); } ?> GVODUJPOQIQͰDTT΍KTͷಡΈࠐΈΛهࡌ͢Δར఺ ɾDTT΍+BWB4DSJQUͷॏෳಡΈࠐΈΛճආͰ͖Δ ɾGVODUJPOTQIQ಺ͰಡΈࠐΉϑΝΠϧͳͲΛҰݩ؅ཧͰ͖Δ
  50. طଘςʔϚΛΧελϚΠζ͍ͨ࣌͠  8PSE1SFTTຊମ ɾϑΥϯτΛม͍͑ͨ ɾจࣈΛେ͖͍ͨ͘͠ ɾҰ෦ͷϖʔδʹը૾Λग़͍ͨ͠ ɾΧϥϜΛ΍ΊͯΧϥϜʹ͍ͨ͠ ɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹɹͳͲͳͲ GVODUJPOQIQ JOEFYQIQ

    TUZMFDTT ςʔϚ ςʔϚ͕ Ξοϓσʔ τ͞ΕΔͱ ฤूͨ͠ ϑΝΠϧ͸ શ্ͯॻ͖ ͞ΕͯϦ ηοτ͞Ε Δ ςʔϚʹ͋ ΔϑΝΠϧ Λฤू͢Ε ͹ςʔϚࣗ ମΛࣗ༝ʹ ΧελϚΠ ζ͢Δ͜ͱ ͕Ͱ͖Δ
  51. ࢠςʔϚΛ࢖͏͜ͱͰճආͰ͖Δ  8PSE1SFTTຊମ GVODUJPOQIQ JOEFYQIQ TUZMFDTT ਌ςʔϚ GVODUJPOQIQ JOEFYQIQ TUZMFDTT

    ࢠςʔϚ ਌ςʔϚͱ͸ಠཱͨ͠ϑΝΠϧΛ࡞ͬͯΧελϚΠζ͢Δ͜ͱͰɺ ΋ͱͱͳΔ਌ςʔϚͷӨڹΛड͚ͣʹΧελϚΠζͰ͖Δ
  52. ࢠςʔϚΛ࢖͏͜ͱͰճආͰ͖Δ  8PSE1SFTTຊମ GVODUJPOQIQ JOEFYQIQ TUZMFDTT ਌ςʔϚ GVODUJPOQIQ JOEFYQIQ TUZMFDTT

    ࢠςʔϚ ਌ςʔϚͱ͸ಠཱͨ͠ϑΝΠϧΛ࡞ͬͯΧελϚΠζ͢Δ͜ͱͰɺ ΋ͱͱͳΔ਌ςʔϚͷӨڹΛड͚ͣʹΧελϚΠζͰ͖Δ ਌ͱࢠͰ ςʔϚΛ෼ ͚Δ͜ͱ ͰɺͲ͜Λ Ͳ͏Χελ ϚΠζͨ͠ ͔Θ͔Γ΍ ͘͢ͳΔ
  53. TUZMFDTTΛमਖ਼ /* Theme Name: Twenty Seventeen Child Description: Twenty Seventeen

    Child Theme Author: hoge hoge Template: twentyseventeen Version: 1.0.0 */
  54. TUZMFDTTΛमਖ਼ /* Theme Name: Twenty Seventeen Child Description: Twenty Seventeen

    Child Theme Author: hoge hoge Template: twentyseventeen Version: 1.0.0 */ ɾ·ͣ͸ςʔϚͷઆ໌͚ͩهड़ ɾࢠςʔϚ࡞੒ͷ৔߹͸ඞਢ
  55. GVODUJPOQIQΛमਖ਼ <?php add_action('wp_enqueue_scripts', 'theme_enqueue_styles'); function theme_enqueue_styles() { wp_enqueue_style('parent-style', get_template_directory_uri() .

    '/style.css'); } ?> ɾ਌ςʔϚͷDTTΛಡΈࠐΉͨΊͷهड़ ˞Կ΋͠ͳ͍ͱࠓ༗ޮͷςʔϚ ࢠςʔϚ ͷDTT͔͠༗ޮ ʹͳΒͳ͍
  56. GVODUJPOQIQΛमਖ਼ <?php add_action('wp_enqueue_scripts', 'theme_enqueue_styles'); function theme_enqueue_styles() { wp_enqueue_style('parent-style', get_template_directory_uri() .

    '/style.css'); } ?> ɾXQ@FORVFVF@TDSJQUTؔ਺͕࣮ߦ͞ΕͨΒ UIFNF@FORVFVF@TUZMFTΛ࣮ߦ͢Δ ɾXQ@FORVFVF@TDSJQUT͸ϫʔυϓϨεͷඪ४ؔ਺ɻґଘؔ܎ʹ ैͬͯεΫϦϓτϑΝΠϧΛʮॏෳ͠ͳ͍Α͏ʹʯ·ͨʮద੾ͳॱ ൪ʯͰಡΈࠐΉΑ͏ʹ੍ޚͯ͘͠ΕΔؔ਺
  57. GVODUJPOQIQΛमਖ਼ <?php add_action('wp_enqueue_scripts', 'theme_enqueue_styles'); function theme_enqueue_styles() { wp_enqueue_style('parent-style', get_template_directory_uri() .

    '/style.css'); } ?> ɾXQ@FORVFVF@TUZMF͸DTTͷಡΈࠐΈΛΩϡʔʹ௥Ճ͢Δ ɾHFU@UFNQMBUF@EJSFDUPSZ@VSJ͸༗ޮԽ͍ͯ͠ΔσΟϨΫτϦΛ ࣔ͢ɻୠ͠ࢠςʔϚͷ৔߹͸਌ςʔϚͷσΟϨΫτϦΛࣔ͢
  58. TUZMFDTTΛमਖ਼ จࣈΛ੺ʹม͑ͯΈΔ /* Theme Name: Twenty Seventeen Child Description: Twenty

    Seventeen Child Theme Author: hoge hoge Template: twentyseventeen Version: 1.0.0 */ body.has-header-image .site-title a { color: red; }
  59. ςʔϚϑΝΠϧɹJOEFYQIQ <?php /** * The main template file * *

    This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Sixteen * @since Twenty Sixteen 1.0 */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if ( have_posts() ) : ?> <?php if ( is_home() && ! is_front_page() ) : ?> <header> <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1> </header> <?php endif; ?> <?php // Start the loop. while ( have_posts() ) : the_post(); /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ get_template_part( 'template-parts/content', get_post_format() ); // End the loop. endwhile; // Previous/next page navigation. the_posts_pagination( array( 'prev_text' => __( 'Previous page', 'twentysixteen' ), 'next_text' => __( 'Next page', 'twentysixteen' ), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>', ) ); // If no content, include the "No posts found" template. else : get_template_part( 'template-parts/content', 'none' ); endif; ?> </main><!-- .site-main --> </div><!-- .content-area --> <?php get_sidebar(); ?> <?php get_footer(); ?>
  60. ɾ ɾ ɾ else : get_template_part( 'template-parts/post/content', 'none' ); endif;

    ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> </div><!-- .wrap --> <?php get_footer(); JOEFYQIQΛमਖ਼ αΠυόʔΛ࡟আ
  61. &/%