Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

create icon link dynamically

Home / Forums / Kadence Theme / create icon link dynamically

This topic is: Resolved
[Resolved]
Posted in: Kadence Theme

Tagged: 

April 17, 2024 at 6:06 am

I have some ACF fields for author pages which contain links to academic profiles. I’ve built an element which displays at the top of posts. I’m trying to insert an icon into the element (custom font awesome icons) which uses the custom field as a link. I tried using the dynamic html block to retrieve the link but this gives me the following code which only pulls in the link as plain text.

<div class=”wp-block-group article-author-socials”><!– wp:kadence/dynamichtml {“uniqueID”:”2089_5ed95c-05″,”field”:”author|author_custom_field”,”metaField”:”acf_meta|orchid_id”} /–></div>

I tried various ways of wrapping that with a link but I can’t get the syntax right. Is there a better way of achieving what I’m trying to do?

  • The forum ‘Kadence Theme’ is closed to new topics and replies.