追記バージョンアップしてたら表示されなくなった?

全部Wysiwyg エディタにして表示箇所には

<?php the_field('フィールド名'); ?>

で表示されました。

Advanced Custom Fieldで設定記入した内容を表示させる

<table class=”customfields”>
<tr>
<th scope=”row”><?= “思いついたキッカケ”; ?></th>
<td><?php echo get_post_meta($post->ID, ‘アイデアが生まれたきっかけ’, true); ?></td>
</tr>
<tr>
<th scope=”row”><?= “アイデア名”; ?></th>
<td><?php echo get_post_meta($post->ID, ‘アイデア名’, true); ?></td>
</tr>
<tr>
<th scope=”row”><?= “アイデア用途”; ?></th>
<td><?php echo get_post_meta($post->ID, ‘アイデア用途’, true); ?></td>
</tr>
<tr>
<th scope=”row”><?= “アイデアターゲット”; ?></th>
<td><?php echo get_post_meta($post->ID, ‘アイデアターゲット’, true); ?></td>
</tr>
<tr>
<th scope=”row”><?= “販売希望価格”; ?></th>
<td><?php echo get_post_meta($post->ID, ‘販売希望価格’, true); ?></td>
</tr>
<tr>
<th scope=”row”><?= “類似商品”; ?></th>
<td><?php the_field(‘類似商品’); ?></td>
</tr>
<tr>
<th scope=”row”><?= “イメージ画像”; ?></th>
<td><img src=”<?php the_field( ‘イメージ画像’,$post->ID); ?>” alt=”” class=”smallimg300″ /> </td>
</tr>
<tr>
<th scope=”row”><?= “実現可能?”; ?></th>
<td><?php the_field(‘実現可能?’); ?></td>
</tr>
</table>

 

チェックボックス

イメージ

テキスト

 

見ていただいてありがとうございます。↓ポチしてくださいませ。
  • 見た (2)
  • 見たけど役立たず (2)
  • もう少し詳しく書いて! (0)