Support Forum

MP3 players

11 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

If WordPress performs this task through it’s oEmbed API then it should be exactly the same in the forum post. So the question is how are you structuring the post content for this?

KE Kenn
Kenn
Member

Sorry for delay forgot to subscribe to topic.

Pasting this in the source box:

Edit – I can’t paste the shortcodes no matter which syntax I choose but it is the ones from that page

(square barcket) audio src=” http://www.landlordreferencing.co.uk/forum/files/2015/03/radio-advert-Immigration.mp3″ autoplay=”true”(square bracket)  (square bracket)/audio(square bracket)

 

This works in a page but not in the forum?

Got the code from here:

https://codex.wordpress.org/Audio_Shortcode

YS Yellow Swordfish
Yellow Swordfish
Member

You can use shortcodes in forum posts but you do need to turn them on in the forum admin > Options > Content Settings. When you load the form use the popup help which explains what you need to do

IK Ike
Ike
Member

Hey Kenn,

I’m not sure why you are using ‘square brackets’, Try:

<p><audio controls="controls">
<source src="http://www.landlordreferencing.co.uk/forum/files/2015/03/radio-advert-Immigration.mp3" type="audio/mp3" />
<source src="http://www.landlordreferencing.co.uk/forum/files/2015/03/radio-advert-Immigration.mp3" type="audio/ogg" />
<!--fallback-->
Your browser does not support the audio tag.</audio></p>

Which seems to work fine – Of course you should also be able to upload files through the media library or forum upload and copy the location to use instead of a URL

KV kvr28
kvr28
Member

strange, but when I hover over the thread title in recent forum posts, the media player you just posted shows in the preview pop up, is that normal? Never seen that before

IK Ike
Ike
Member

Weird – I am not seeing that, could it have been only when the last post was the one containing the mp3 player? Does it do the same now?

KV kvr28
kvr28
Member

yeah, just when that last post was the one, doesn’t show now

IK Ike
Ike
Member

Glad it’s not just me then 🙂 maybe WP does it in archive or category list view without excerpt, so you can easily identify a post with an mp3 attached? Not sure..

YS Yellow Swordfish
Yellow Swordfish
Member

Because it was a art of the content in the tooltip.