コード記述例:
[php]<p><a href="<?php echo get_permalink(5); ?>">記事ID5へのリンク</a></p>
[/php]
出力例: …
<?php //トップページ以外の場合にnot_homeクラスを追加 $body_class = ""; if ( !is_front_page() ) { $body_class .= ' not_home'; } ?> <body id="top" <?php body_class( $body_class ); ?>>
この投稿へのコメント
コメントはまだありません。