Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //OGPの設定
- get_template_part('ogp');
- //FBのユーザーIDとアプリIDを設定
- $og_userid = "あなたのFBユーザーID";
- $og_appliid = "あなたのアプリID";
- //画像設定(記述なしか0ならアイキャッチ 1なら固定画像)
- $og_img_flg = 1;
- //画像のパス設定(記述なしなら[images/default.gif])
- $og_img_url = "テーマフォルダ以降の画像パス";
- //heagerのwp_head()で表示させる
- add_action ('wp_head','print_ogp');
- ?>
Add Comment
Please, Sign In to add comment