- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「テンプレート」の版間の差分
提供: WordPress Codex 日本語版
(和訳(意訳)続き) |
|
(相違点なし)
|
2007年8月3日 (金) 23:36時点における版
原文・最新版: WordPress Codex » Templates
目次
テンプレートとは、ウェブ上で WordPressサイトをどのように表示させるかをコントロールするファイルです。テンプレートファイルは、あなたの WordPress の MySQL データベースより情報を取得し、ウェブブラウザへ送る HTML コードを生成します。WordPress では、強力なテーマシステムによって、一つのテーマの中にあるテンプレートファイルを、あなたの好きなだけ自由に定義できるようになっています。各テンプレートファイルは、ある特定の状況下で使われるように設定できます。テーマの作成についての詳細は、「テーマの作成」 をご覧ください。
以下のリンク先:
- 訳すつもりのページ → 当サイト
- WPJ Codex に和訳済みページあり(最新ではないかも) → WPJ Codex
- その他 → Codex
テーマ全般
(General Theme Articles)
- テーマの使い方
- テーマとテンプレートの使い方・インストールについての基本情報 (Using Themes)
- プラグインとテーマの 2.1 への移行
- テーマを WordPress 2.1 に対応させる方法についての情報
- テーマの作成
- あなたのテーマのデザインと作り方。テーマの仕組み・構成ファイルなど。配布テーマをカスタマイズしたいときにも。 (Theme Development)
- Designing Themes for Public Release
- 公開用 WordPress テーマのデザイン・作成方法
- Version 2.2 Theme Compatibility List
- WordPress 2.2 互換テーマの一覧
- Site Architecture 1.5
- Standard site architecture of the Default and Classic themes, which you are encouraged to follow in your Themes
- Creating Admin Themes
- 管理パネルの外観を変えるプラグインの作り方
- Upgrade 1.2 to 1.5
- Contains information on how to upgrade from a 1.2 template to a 1.5 Theme
外部情報:
- Make your Own Wordpress Theme by Fauzi Mohd Darus
- Ryan Boren's Anatomy of a Theme
- Moshu's Visual Anatomy of a WP v1.5 Theme
- Chris J. Davis' Secrets of WP Theming, Part 1
- Chris J. Davis' Secrets of WP Theming, Part 2
- Chris J. Davis' Secrets of WP Theming, Part 3
- Dissection of a WordPress Theme
- Design your First WordPress Theme
- How to create a WordPress Template or Theme tutorial
- WordPress is Not PHP - Template Files
- WordPress is PHP
テンプレートファイル
(Template File Articles)
基礎・全般
(General References)
- Stepping Into Templates(和訳途中)
- WordPressテーマの構成要素であるテンプレートファイル入門。1つのウェブページを生成するためにテンプレートファイルがどのような働きをするか、テンプレートファイルへの他のテンプレートファイルの読み込み方の説明。 (Stepping Into Templates)
- Template Hierarchy
- 様々なページを生成するためのテンプレートの優先順序についての説明。ウェブログで要求されたページを生成する過程で、WordPress がチェックするテンプレートの簡潔なリスト。 (Template Hierarchy)
- ループ(和訳途中)
- テンプレートファイルの一部分、コンテンツ部を生成する Wordpressループの説明 (The Loop)
- The Loop in Action
- Wordpress ループについての詳細
ヘッダ・フッタ・サイドバー・コンテンツ部
(Header, Footer, Sidebar, and Content Sections)
- Designing Headers
- header.php テンプレートファイルのカスタマイズ
- Adding Post Feeds to the Header
- ヘッダ・テンプレートファイルへの RSS フィードリンクの追加方法
- Customizing Your Sidebar
- sidebar.php テンプレートファイルのカスタマイズ
- Customizing the Read More
- 抜粋につける「続きを読む(Read More)」リンクの見た目のカスタマイズ
- Next and Previous Links
- 次/前の記事・ページへのリンクの見た目のカスタマイズ
- Styling Page-Links
- How to break up single posts into multiple pages, and customize their links
- Separating Categories
- 各記事に表示するカテゴリリストの区切り文字の変え方(= the_category() のセパレータの話)
- カスタムフィールドの使い方
- 投稿記事へのカスタム・メタデータの追加、表示方法 (Using Custom Fields)
- Adding Asides
- How to add side notes to your blog posts
- Enabling Popup Comments
- コメントをポップアップウィンドウに表示させる方法
アーカイブ・カテゴリ・特別ページ
(Archives, Categories, and Special Pages)
- Creating a Static Front Page
- サイトの静的ホームページやスプラッシュ・ページの作り方
- Author Templates
- 著者とその投稿記事を表示する author.php テンプレートファイルのカスタマイズ
- Category Templates
- 様々なカテゴリアーカイブのためのテンプレートの定義・カスタマイズ
- Alphabetizing Posts
- カテゴリページの表示順を時系列ではなくアルファベット順にする方法
- Creating an Archive Index
- 日付単位で投稿記事を表示する archives.php テンプレートファイルのカスタマイズ
- WordPressページ
- WordPressページ、テンプレートと WordPressページとの関係についての説明 (Pages)
- Styling Theme Forms
- コメント・検索等のフォームの作り方
- Creating a Search Page
- search.php テンプレートファイルのカスタマイズ
- Creating an Error 404 Page
- 凝った Error 404 ページを表示させるテンプレートファイルの作り方
- Displaying Posts Using a Custom Select Query
- ページに表示する記事を変える方法
外部資料:
テンプレートタグ
(Template Tags Articles)
- Stepping Into Template Tags
- テンプレートファイルで使われるテンプレートタグ入門
- テンプレートタグ
- データベースから情報を取得してウェブ上に表示するための関数群。例えば、記事の内容(本文)は、テンプレートタグ the_content() によって表示される。 (Template Tags)
- Anatomy of a Template Tag
- テンプレートタグの構造・使用法・パラメータの理解
- インクルードタグ
- テンプレートファイルに WordPress の基本テンプレート(サイドバーなど)を読み込むときに利用できるタグの説明 (Include Tags)
- 条件分岐タグ
- このタグ(is_home() のように いずれも is_something() という形式)は、表示中のページの種類(例: メインページ、カテゴリアーカイブ等)を判定します。このタグの返す値に応じてテンプレートの出力を制御したいときに、テンプレート内で使えます。 (Conditional Tags)
- Query Posts Template Tag
- ページに表示する記事をコントロールするテンプレートタグ query_posts の説明
- テンプレートタグ/wp_list_pages
- WordPressページの一覧を作成するテンプレートタグ wp_list_pages() の説明 (List Pages Template Tag)
外部資料:
- Templates and "is" functions, by Ryan
- Theme cheatsheet
- Using the_content and the_excerpt tags within the Loop at the same time.
CSS・デザイン・レイアウト
(CSS, Design, and Layout)
- CSS
- How to integrate CSS into WordPress, with list of other WordPress CSS references
- Blog Design and Layout
- WordPress のブログデザインとレイアウトについての記事・資料一覧
- Know Your Sources#CSS
- List of general CSS references
外部資料:
- Flumpcakes CSS Optimizer - Optimize your CSS file. Contains a possibly "not safe for work" header image.
- Creative Commons Images:Search for Creative Commons images that are free to share and use online.
- Image * After:A free stock image library for commercial and personal use.
- stock.xchng:Photographs available free of charge to the public.
- freedigitalphotos.net:Free photos for commercial and non-commercial use.
- informaticafriuli.com:Free wordpress theme and template.
Tools, Testing and Validating
- CSS Fixing_Browser Bugs
- CSS Troubleshooting
- Validating a Website
- Plain Text Editors
- A list of plain text editors for all platforms.
外部資料(日本語)
後で分類
- Wptags.com -- テーマファイルをアレンジするうえで必要な「テンプレートタグ」の機能と使い方を説明。さらなる詳細や使用例は Codex 参照。
- Standing Tall » WordPress テーマの詳説 -- John Godley による「UrbanGiraffe » WordPress Theme Guide」の翻訳。デフォルトテーマを分解して、構造や仕組みを学びながら再構築していく。(taiさん)
- WordPressテーマ:作成&カスタマイズ -- WordPressテーマの作り方、カスタマイズのポイントやアイデア等を集めたガイド (Toruさん)