Home › Forums › General Issues › Image clickable › Reply To: Image clickable
Hi John,
Thanx you helped me a lot. Well, PHP seems quite logical, you say this_is_my_variable and now I play with.
Actually, I changed a small part of your code because some end balise were missing.
I put below my working code.
With my best thanks.
Z
`<?php
$image = get_field(‘image’);
$small_size = ‘cb-480-240’; // (thumbnail, medium, large, full or custom size)
$large_size = ‘full’;
if ($image) {
$small_image = wp_get_attachment_image($image, $small_size);
$large_image = wp_get_attachment_image_src($image, $large_size);
?>
“>
<?php echo $small_image; ?>
<?php
}
?>’
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.