スニペット/WordPress custom fields
1 2 3 4 5 6 7 8 9 10 | <?php $image = post_custom('opus-image1'); echo wp_get_attachment_image($image, $size); ?><?php $image = post_custom('opus-image2'); echo wp_get_attachment_image($image, $size); ?><?php $image = post_custom('opus-image3'); echo wp_get_attachment_image($image, $size); ?> |
1 | <?php the_field('score-number'); ?> |
1 | <?php if (post_custom('score-number')): ?> |
1 | <?php if (get_field('release')): ?> |
コメントを投稿する