Skip to content

Instantly share code, notes, and snippets.

@nishinoshake
Last active May 29, 2016 04:21
Show Gist options
  • Save nishinoshake/d20ca361b92b6ffd4bfd to your computer and use it in GitHub Desktop.
Save nishinoshake/d20ca361b92b6ffd4bfd to your computer and use it in GitHub Desktop.
WordPressテンプレート作成

##WordPressテンプレート作成

###各ファイルの特徴 style.css
ここにテーマの情報も書く。メインのスタイル。

index.php
いろんなファイルがなかったら最後に参照されるファイル。

header.php
DOCTYPEからまで。get_header()。wp_head()を書く。

footer.php
フッタからまで。get_footer()。wp_footer()を書く。

sidebar.php
サイドバー。get_sidebar()。

home.php フロントページ
archive.php アーカイブページ
single.php 個別投稿のページ

###注意 ・wp_head()とwp_footer()は絶対につける(プラグインのaction_fookに必要)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment