Support

Account

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
    }
    ?>’