wordpress
2009.05.24
テーマ上の、カスタムフィールドの内容を表示するところに以下を記載
[code language="php"]
<?php echo nl2br(get_post_meta($post->ID,コメント,true)); ?......
続きを読む >>
2009.04.30
複数ブログ運営にサーバーはチカッパ、ドメインはムームードメインでwordpressMUをインストールしてみた。
サブドメイン、ディレクトリ型での複数ブログ運用が可能なため、DBが一つしか与えられていないサーバーでもOKなのがすてき。
......
続きを読む >>
2009.03.08
通常の表記
< ?php the_date('’) ?>
全記事に表示の表記
< ?php the_time(’Y年m月d日’) ?>......
続きを読む >>
2009.03.08
< ?php query_posts('cat=6&posts_per_page=9'); ?>
< ?php if (have_posts()) : ?>
< ?php while (have......
続きを読む >>
2009.03.08
< ?php
foreach((get_the_category()) as $cat) {
echo '<img src="wp-content/themes/mopix/images/' . $cat->cat_I......
続きを読む >>
2009.03.08
びっくりするほどカンタン。
category-10.php
のように、適用したいカテゴリIDを後ろにつけるだけ。......
続きを読む >>
2009.03.08
< ?php query_posts('order=asc'); ?>
を
< ?php if (have_posts()) : ?>
の上に挿入する。
order=asc
が昇順......
続きを読む >>
2009.03.08
< ?php
foreach((get_the_category()) as $cat) {
$cat_list .= $cat->cat_ID .’,’ ;
};
query_posts(’cat=’ .$cat_li......
続きを読む >>
2009.03.08
< ?php
$posts = get_posts('numberposts=99&category=10&order=asc');
foreach($posts as $post) :
setup_postda......
続きを読む >>