Plugin Author
Aert
(@aahulsebos)
Hi @swingjac,
I need to look at the specific ACF embed for Soundcloud and create a specific integration. I will post it here as soon as possible.
regards Aert
Plugin Author
Aert
(@aahulsebos)
Hi @swingjac,
This is a default implementation, could you share me your HTML, and template changes? https://s-qr8j672matffl.eu1.wpsandbox.org/hello-world/
Please check if soundcloud is enabled as service under Integrations as well.
regards Aert
Hi Aert,
thank you for taking care of that. I know it works with the default implementation and I never had problems using it with a widget. But using the ACF suggested code, your plugin does not recognize soundcloud. It works with YouTube though.
Here is the code I’m using:
<?php
$audios = get_field('projekte_audio');
if($audios) {
foreach($audios as $audio) {
$iframe = $audio['audio_link_url'];
preg_match('/src="(.+?)"/', $iframe, $matches);
$src = $matches[1];
$params = array(
'visual' => 'false',
'show_playcount' => 'false',
'show_comments' => 'false',
'color' => '3FBDD3'
);
$new_src = add_query_arg($params, $src);
$iframe = str_replace($src, $new_src, $iframe);
?>
<div class="audio-wrapper">
<?php echo $iframe; ?>
</div>
<?php
};
};
?>
Let me know if you need anything else.
Cheers
Hello @swingjac,
Thank you for the detailed response. Quick update: we are going to look into this issue, so I hope to be able to provide more information soon.
Kind regards,
Jarno
Plugin Author
Aert
(@aahulsebos)
Hi @swingjac,
We are looking for a custom ACF Oembed integrations, specifically to Soundcloud, as I can’t seem to make it work.
You can either disable Soundcloud as an integration under Complianz – Integrations, or use a standard embed, instead of an ACF Oembed. This seems to work,
the integration should be in the next update,
regards Aert
Hi @jarnovos and @aahulsebos ,
thank you for your support and sorry for the late reply. I’m looking forward for the update.
If you need any further assistance from me then just let me know.
Cheers