Problem: I want to display an audio player using an MP3 I have stored in a Types custom audio field. I'm using a Product Bundle extension and I'd like to replace some of their text output with this MP3 player.
Solution: I can show you how to display an audio player, but replacing some of a 3rd-party plugin's output may require the assistance of the support team for that 3rd-party plugin. In general, you would use the Types field API to display a MP3 player loaded with the MP3 from a custom audio field. An example showing how to display a basic player with 'autoplay' set to 'off':
echo( types_render_field('your-field-slug', array( 'autoplay' => 'on' ) ) );
Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/functions/#audio
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
Dieses Thema enthält 3 Antworten, hat 2 Stimmen.
Zuletzt aktualisiert von vor 4 Jahren, 9 Monaten.
Assistiert von: Christian Cox.