-
Dear Team,
I would like to ask four your input/help in another carousel-related question.
I would like to add several auto-playing sound files to a carousel, with a different file for each slide. I would like to do this without using the embedded WP media player.
I saw a previous suggestion on this forum thread: https://generate.support/topic/add-audio-of-posts-to-meta/
and i was wondering if this would be possible, even if i have to adjust my planned setup. In principle, the carousel is to be prepared manually, without using a query loop or custom fields. PHP snippets and/or hooks can be added.
I was wondering if the solution in the thread above (which predates the launch of your carousel block) could be adapted for this purpose.Ideally, each audio file (locally hosted, low traffic website)) is linked to a slide in the slider/carousel. Each slide has an image of a painting, which has a corresponding poem in a audio file.
When the slide is loaded, the audio file is triggered and plays once only. A play/pause button is not considered, but could be added if it helps (as in the thread above). A “Mute” button is not needed.The website has Generate Press 3.6.1 and GB Blocks Pro 2.5.0, both with a current license. No plugin conflicts.
Thank you in advance!
-
Hi there,
In principle, the carousel is to be prepared manually, without using a query loop or custom fields.
If this is the case, the example solution is not suitable.
And I would suggest using a player plugin to display/play the audio.
-
Hi Ying,
Thank you for the quick reply.We could also use a query loop, filtering based on a taxonomy attribute like the image category or tag. I suppose i could create a meta URL custom field, like in the example solution, but link it to the media file instead of a post. Can the hooks be made to functions like that, following the steps in the example?
After adapting the php snippets to references the correct type of element and field, do you think the example approach would still work with the current blocks?If we take the plugin route, is there any particular ones you can recommend, to minimize possible conflicts with the GBlocks?
Thank you once again and best regards
-
Can the hooks be made to functions like that, following the steps in the example?
I’m not sure. The solution provided by Fernando was not tested, and the user didn’t reply, so no, I don’t know if it’s going to work.
Just so you know GB query block can not query media files, unfortunately!
-
Thanks. I’ll check the plug in options then.
The topic can be closed. -
No Problem 🙂
- You must be logged in to reply to this topic.