Okay
  Public Ticket #2042144
ACF dynamic field for MP3 field
Closed

Comments

  • paul started the conversation

    Hi, I am trying to use a dynamic link for Sonaars embedded ACF field for the mp3 file....

    It does not appear in the Dynamic dropdown list? I tried it with a simple heading to pull in ANY of your embedded ACF fields.... still nothing.

    Any ideas? Do you know about this? See screenshot where it does not appear in the dropdown.

    I was told not to install the ACF plugin as it conflicts with the Audio player, and that Sonaar have already integrated ACF into the theme.

    Please advise. Thanks

  •  1,103
    Max replied

    Hi,

    I never went up to that point, but my guess is that Elementor Pro does not support ACF repeater field yet.. Perhaps this is related (but I've not deeply checked it yet: https://github.com/elementor/elementor/issues/5979)

    Our ACF version is hardcoded into our theme because we had to tweak it on our own. Perhaps ACF released a new version that fully support Elementor but we have not tested it.

    I will make sure to add this to our roadmap tho.

    Can you please provide me more info on what you are trying to acheive (as the final result)?




    Thanks,


    Max from the Sonaar.io Crew

  • paul replied

    Hi and thanks for your reply.

    It's not the 'ACF Repeater Field' that I'm concerned about, it's the basic dynamic field of the Podcast mp3 file.

    What I wanted to do was add a basic Audio element into a page that is more customizable (and smaller for a sidebar) than your Sonaar audio element, and call upon your embedded ACF mp3 file in the Podcast post.

    I've tried and it does not show as an option to select as a dynamic field, or with the shortcode it does not work. 

    Any other thoughts? Thanks

  •  1,103
    Max replied

    Hi,

    I have not tried/investigated much right now (just trying to figure out the issue and see if there is a work around before we go deeply into our code first).

    I dont understand the "final" result you want to acheive. From what I understand, you want to build a basic audio player straight out of the Elementor Editor that will pull the source file URL from the dynamic ACF field..

    In my understanding, even if you were able to pick the ACF field dynamically, you would not be able to output an audio player because you need to throw an audio element script into the page first..

    Thanks,


    Max from the Sonaar.io Crew

  • paul replied

    Hi Maxime, I have the AUDIO element from Elementor or JetElements. I would simply like to call upon the MP3 file from the ACF podcast field as the dyniamic field content.

    The standard Audio elements in Elementor generally play mp3 files without issues.

    I just want to grab it from the ACF field rather than manually add the mp3 file, which wouldn't work anyway as a dynamic field in a template.

    Any thoughts?

  • paul replied

    screenshot of audio element

  •   Max replied privately
  • paul replied

    Hello. it is the Audio player from Jet Elements, and uses Jet Engine to pull in dynamic fields from CPT's.

    So installing ACF as the standalone plugin will not 'break' the Sonaar audio player, which it did when I mistakenly installed the ACF plugin when I first installer the Sonaar theme?

    Thanks for your help.
    Paul

  •  1,103
    Max replied

    Not if you use the version I sent you

    Thanks,


    Max from the Sonaar.io Crew

  • paul replied

    Awesome. Will the version that you sent me become the standard download for Sonaar on your website, or is this a bespoke version. I just want to be clear about future updates to the theme. Thanks again!!!!

    Paul

  • paul replied

    Hi Maxime, I have installed the new theme version and installed and activated the standalone ACF plugin. The Sonaar audio player stops working. I thought it was fixed that the ACF plugin wouldn't mess with the Sonaar player????

    This is what I had received in the beginning from Alexandre:


    Hi Paul,  ACF is already embed in our theme core. We are using acf to set custom post type options.  That why when you install a second ACF plugin, issues happen. You can add your custom field here https://d.stage.droplr.com/free/i/28PRtC. It is important to disable the ACF plugin you have activated.

    Thanks,

    Alexandre from the Sonaar.io Crew



    Any thoughts on this?????
    Thanks

  •  1,103
    Max replied

    Hi Paul,

    have you installed the version of Sonaar that I have sent you and attached to the thread? That version will fix your issue. Alexandre told you that BEFORE i sent you the new version that fix this issue.

    Thanks,


    Max from the Sonaar.io Crew

  • paul replied

    Hi, yes i did use the version that you sent me and is disabled the Sonaar mp3 player when I added and enabled the ACF plugin. So i reverted back to the official theme.

    Now that you have also added the_content(); in the single.php template (as per my last ticket), it will now be more complext to test again until the changes are included in the official theme release.

    Do you know when the next plan updates release will be and if these changes will be included?

    Cheers,
    Paul

  •  1,103
    Max replied

    next week

    Thanks,


    Max from the Sonaar.io Crew

  •  1,103
    Max replied

    Wait Paul,

    I think there is a confusion (well, i am confused). I have carefully read your last message and you told me that the new version I sent you DISABLE the Sonaar MP3 Player? I cant reproduce the issue and this is important. 

    Perhaps I dont understand what you mean by "Disable the Sonaar MP3 Player". Can you elaborate or help me reproduce the issue? Ive been looking for 1 hour and its why im confused by this message.

    Thanks,


    Max from the Sonaar.io Crew

  • paul replied

    Hi Maxime, it's very easy to replicate.

    Install the bespoke Sonaar theme that you sent me and Activate it.

    Open a Podcast page and play it. - It works OK, so leave the tab open.

    Add the new plugin Advanced Custom Fields and Activate it.

    Go back to the Podcast page and refresh the page. 

    Try to play the Podcast again.... It opens but does not play or work.


    Do you see what I mean now?


  •  1,103
    Max replied

    Ok, I just installed you the version here: wordpress-224129-884248.cloudwaysapps.com and I have also fixed the_content() in your single.php

    I tested with this episode and it works: http://wordpress-224129-884248.cloudwaysapps.com/podcast/inspirational-sermon/

    We will release the official release next week, but in the meantime, you are good to go.

    Thanks

    Thanks,


    Max from the Sonaar.io Crew

  • paul replied

    Awesome. Thanks for doing it. I'm sure that it will stop this support question in the future from other clients :-)

    I have installed ACF and it all works as expected.

    Cheers
    Paul

  •  1,103
    Max replied

    You dont need to have ACF plugin activated because in this new version, ACF5 is already builtin witin the theme.
    I recommend that you deactivate/delete ACF plugin.

    Thanks,


    Max from the Sonaar.io Crew

  • Chris Chan replied

    Hi, I just bought the Sonaar theme (currently using theme version 4.18.2) and am also trying to get the "Sonaar music player" widget in Elementor to play an mp3 based on dynamic data (the URL of the mp3 file stored is in an ACF field). I can't see any options for adding a dynamic file source for the music player and want to ask how I can enable this functionality? Thanks!

  •  647
    Alexandre replied

    Hi Chris, 

    Sorry but you cant use a new acf field. This request required too much customization for our support.

    Thanks,


    Alexandre from the Sonaar.io Crew