Can I insert ACF value into a code block?

[ad_1]

[SOLVED]

I'm using Avada 7.11.10 and building a custom layout for my podcast episode posts.

I want to insert HTML for each episode's podcast episode player into a code block I've included in the layout. The HTML come from an advanced custom field, "episode-player", that I've added to the custom post type.

But there doesn't seem to be a method for dynamically inserting ACF values into a code block in the same way I can insert ACF values into other blocks such as text blocks.

Tab block with ACF value inserted dynamically: podcast-episode-description

Code block doesn't have a dynamic value method. Are there any other options I could use to achieve my requirement?

[ad_2]
1 Comment
  1. I’m not familiar with Avada but I know that with some other page builders it can be handled through the basic text block. For example, I have some custom map elements that I run through ACF through basic text blocks and it renders properly on the front end.

 

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