Ok, my BP Activity Stream includes a ‘music’ custom post type, with mp3 urls attached as metadata to each of these posts. I am trying to query these song urls (metadata) to build my playlist in the order that they appear in the Site-Wide Activity Stream (not the order they were posted in). My function keeps returning bool(false) when I know there’s data in there. My guess is that I’m not grabbing the metadata properly, I’m not using the loop properly, or the array isn’t being used properly. Can anyone help guide me in the right direction? The get_metadata() worked in a different area of the site which is why I’ve attempted to use it here as well, is this the wrong function to use within this loop? I’ve tried dozens of different combos and this is where I’ve stopped at before deciding to open this support topic:
My approach was to create a function to filter the Activity Stream by my particular action (music), then store the metadata of each of these filtered posts into an array that I’d be able to use to populate the player.