カテゴリー:カスタマイズ
Facebookでシェア時に表示されるタイトルやサムネイルを設定(OGP)
![994540_10200248189307951_613856574_n 994540_10200248189307951_613856574_n](http://wordpress.tok3.org/wp-content/uploads/2013/07/994540_10200248189307951_613856574_n.jpg)
Facebookでリンクシェア時に表示されるタイトルやサムネイルを任意設定する(OGP:オープングラフプロトコル) 備忘録: header and footer プラグインを使用して、Wordpressに組み込むと便利。…
詳細を見るマルチサイトで、配下にある他サイトの投稿一覧を取得したい
![](http://wordpress.tok3.org/wp-content/themes/BlogPress/img/common/no_image1.gif)
<?php switch_to_blog('2'); ?> // 呼び出したい投稿のブログIDを入力 <?php $posts = get_posts('numberposts=10&category=52');…
詳細を見るカスタムフィールドテンプレートに画像を表示
![](http://wordpress.tok3.org/wp-content/themes/BlogPress/img/common/no_image1.gif)
<?php echo wp_get_attachment_image(post_custom('banner')); ?> type=file の場合。…
詳細を見る