Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Display a field
- <p><?php the_field('field_name'); ?></p>
- Working with Images – URL
- <img src="<?php the_field('image_test'); ?>" alt="" />
- Working with Images – ID
- <?php $image = wp_get_attachment_image_src(get_field('image_test'), 'full'); ?>
- <img src="<?php echo $image[0]; ?>" alt="<?php echo get_the_title(get_field('image_test')) ?>" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement