WordPressテンプレートタグ集 便利帳を作る予定
wordpressがさっぱりわからんまま終わりそうですが
一応まとめておきます
タイトル
<title><?php wp_title( '|', true, 'right' ); bloginfo('name'); ?></title>
名前
ヘッダーの呼び出し
<?php get_header(); ?>
<?php wp_head(); ?>
</head>の前に入れる
フッターの呼び出し
<?php get_footer(); ?>
ま有効にしてるテーマのディレクトリ(フォルダ)までの場所(URL or URI)をはき出す。
テーマディレクトリ直下にあるimagesフォルダ内の画像を読み出したい時などに使う。
<img src="<?php echo get_template_directory_uri(); ?>/images/sample.jpg" />
今有効にしてるテーマのスタイルシートの場所(URL or URI)をはき出す。
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/sample.jpg" />
じわじわ増えてほしい