Add dynamic data and custom layout to card component

Hi community!

The site I’m building contains an archive where I would like to show posts in a looper. The data that should be shown would be provided from acf-fields. I would like to show this data in the card component, in a custom layout inside the card.

Since the card component does only provide the function to add rich text or html, I was wondering, if I can still pull dynamic data from acf fields into the html-field and then add custom css to the site so that I’d achieve the desired styling. I tried following advice from this page by putting in the shortcode of a field, but the card did not show any content (it was just blank).

My question: Can I somehow add dynamic data to the card component and style it by adding custom css? How can I achieve this?

Thank you very much for your support.
Laura

Hello Laura,

Thanks for writing to us.

Are you talking about the Card element? There is an option in the Card element to add rich text or HTML or you can also use the dynamic content code as well to pull the post text using the Looper. Please have a look at the given screenshot below.

Test-Page-Cornerstone (76)

Hope it helps
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.