• Resolved Micke

    (@michaelcasado)


    Using image and text for a CTA block. The image looks correct in the editor, but output all blocks will have the same image if more than 1 block is used on the post/page. Text and links work, but all get the same image. “Allow use block multiple times on the page.” is checked.

    echo wp_get_attachment_image( $attributes[‘cta-bild’][‘id’], ‘medium’);

    Edit: Had this string in the CSS and moved it to the Div inline css instread and problem is gone. Didnt think 100% today.

    • This topic was modified 2 years, 8 months ago by Micke.

The topic ‘Same image on all blocks if more than 1 us used per page’ is closed to new replies.