Same image on all blocks if more than 1 us used per page

[ad_1]

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 1 hour, 48 minutes ago by Micke.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer