Thanks. It seems to be showing it twice for us now when it is a WP attachment, like this one that has the MP3 and Bulletin as attachments: https://northstarpulaski.org/podcasts/book-of-acts-1716-34/
Then it shows only once for external links (or non-attachments) like:
https://northstarfamily.org/podcasts/acts-181-17-ministers-breaking-sad/
I really like the dashicons view so I’ll probably just do the same thing to not show attachments but leave it for now for you to look at. I also think the link @techbizgurl gave is doing the same thing as it’s showing her notes twice I believe.
I do appreciate the improvement since I would rather have it show twice than not at all, so thank you for getting on that so quickly ??
//Enter Nerd Talk…
My question looking at the code is if the $attachments code block is even needed. Is it possible to have an attachment that is not the MP3, Notes, or Bulletin? If not, then can that block just be removed? I know some people are probably using it differently than us, so if that is not an option, I totally understand!
If so, one thought would be to store the attachment URL and name into an array and then if the URL matches the audio, notes, or bulletin URL, use the actual name instead of just “MP3/Notes/Bulletin” with the icon. Finally, just show any attachments that don’t get matched below with a standard icon. That would eliminate duplication, show everything with an icon, and put MP3/Notes/Bulletin first no matter what. An added bonus would be us as end users being able to control the name shown if it is an attachment. If that sounds good, I’m happy to code it up and submit it back to you guys for review and inclusion if you like it.
//End Nerd Talk ??