Support

Account

Home Forums Add-ons Repeater Field Display Title of File in href using Repeater Reply To: Display Title of File in href using Repeater

  • Hi @udapud

    I can see from your code that the repeater field is called add_audio_file.

    Why then do you have the code:

    
    $attachment_id = get_field('add_audio_file');
    

    This is not the attachment id, it is the repeater field array…
    The attachment ID is found WITHIN the loop via:

    
    $attachment_id = get_sub_field('add_audio_file_repeater');
    

    But, now looking at your field names, I think you have them around the wrong way. Please read the documentation before coding and asking questions, it is very simple to understand. I think you have just copied / pasted without looking at the actual code.

    Thanks
    E