Advanced Custom Fieldsによるカスタムフィールドの出力 [画像編] オブジェクトで吐き出し

<?php
$image = get_field('img_test'); //フィールド名「img_test」の画像オブジェクトの情報を取得

if(!empty($image)){
    $url = $image['url']; //画像のURL
    $alt = $image['alt']; //画像のalt
    $title = $image['title']; //画像のタイトル
    $size = 'thumbnail'; //出力サイズを変数に格納
    $imgThumb = $image['sizes'][ $size ]; //サムネイル画像のURL
    $width = $image['sizes'][ $size . '-width' ]; //サムネイル画像の幅サイズ
?>

<a href="<?php echo $url; ?>” title="<?php echo $title; ?>">
    <img src="<?php echo $imgThumb; ?>"> width="<?php echo $width; ?>" alt="<?php echo $alt; ?>" />
</a>
<?php } ?>

Advanced Custom Fieldsによるカスタムフィールドの出力【画像編】