Contenu connexe Similaire à 2014 01-11-tdc-6th-anniversary Similaire à 2014 01-11-tdc-6th-anniversary (20) 2014 01-11-tdc-6th-anniversary36. WordPressとは
WordPressとSEO
WordPress is a great choice
WordPress automatically solves a ton of SEO issues.
(意訳)
ワードプレスを選ぶことは、非常に良い選択です。
なぜなら、ワードプレスは、SEOに関する多くの問題を自動的に解決してくれて、
WordPress takes care of 80-90% of
(the mechanics of)
SEO(サーチエンジン最適化)の手法の80%∼90%に対応するように作られているから
です。
Search Engine Optimization (SEO)
WordCamp San Francisco 2009 Matt Cutts
65. WordPressでの効率的な開発
テーマ
WordPressループ
<?php if ( have_posts() ) : ?>
投稿データがあるか
<?php while ( have_posts() ) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
投稿データを$postに
セット
<?php endwhile; ?>
<?php endif; ?>
記事表示の基本
77. WordPressでの効率的な開発
WordPressの動作原理
2.解析
パラメーターは46個
m, p, posts, w, cat, withcomments, withoutcomments, s, search,
exact, sentence, debug,
calendar, page, paged, more, tb, pb, author, order, orderby, year,
monthnum, day, hour, minute,
second, name, category_name, tag, feed, author_name, static,
pagename, page_id, error,
comments_popup, attachment, attachment_id, subpost, subpost_id,
preview, robots, taxonomy,
term, cpage, post_type
78. WordPressでの効率的な開発
WordPressの動作原理
2.解析
パラメーターは46個
m, p, posts, w, cat, withcomments, withoutcomments, s, search,
exact, sentence, debug,
calendar, page, paged, more, tb, pb, author, order, orderby, year,
monthnum, day, hour, minute,
second, name, category_name, tag, feed, author_name, static,
pagename, page_id, error,
comments_popup, attachment, attachment_id, subpost, subpost_id,
preview, robots, taxonomy,
term, cpage, post_type
URLにパラメーターと同じ名前のものが
あると404エラーになりやすい
122. WordPressハンズオン
function hello_bokettch() {
echo '<p id="hello-bokettch">ことしはボケない!!</p>';
}
add_action('wp_footer','hello_bokettch');
function hello_bokettch_style() {
echo '
<style type="text/css">
#hello-bourgeon {
font-size: 30px;
font-weight: bold;
color: red;
text-align: center;
}
</style>
';
}
add_action( 'wp_head', 'hello_bokettch_style' );