Now that you’ve got the unique URL for each of your podcast episode collection items, just head into your Embed Element HTML, select the same portion of the code shown above, click the “+ Add Field” button, and choose the “Podcast Embed” option:
Feel free to shorten this to only the “unique” portion of the URL if that’s not the case.
and ?dark=false, however most embed fields automatically select the entire line for easy copy/pasting. Note: Since most of this URL will actually stay the same between episodes, you can choose to only select the string between. Once you’ve got that added, make sure to add only the URL within the Simplecast embed code to this field for each collection item (what I have selected in the following screenshot): Happy Holidays!įirst you need to add back the “Podcast Embed” custom field to your BDC Podcast collection, but make sure the type is set to Plain Text. Hopefully that all makes sense, but I’m happy to walk you through either solution in more depth if you have any other questions. This code is a bit different from what you’re currently using, and may be limited to only certain account levels on Simplecast, but it would eliminate a field from your collection and save you the copying/pasting of that URL when you make a post on the site. That means, that you can probably automate the process a bit by simply matching the name of the collection item on the site with the podcast name in Simplecast (potentially with a bit of custom code to truncate the slug as needed)-and just replace the end of the iFrame URL instead. I took a peek at Simplecast embed instructions here, and it looks like the short link URL they provide uses a “sluggified” version of the podcast title. Keep in mind that it won’t show up in the dropdown of available fields in the Embed Element until you change the custom field type to “Plain Text”-right now it’s a Rich Text field and these aren’t available to use in the Embed Element custom code: You can fix the code error by removing the extra opening tag with variables at the beginning (highlighted in the screenshot below):Īfter fixing the code error, you can get that unique URL included in your Embed Element iFrame code by selecting your entire src URL and clicking the “+ Add Field” button to replace that selection with a Dynamic Field.