• Hello, I am having an audio embed problem. Would appreciate your help if possible.

    on this page, bottom right info panel (you may have to click)
    https://photos.luctrudel.com/gallery/norman-mousseau/

    image

    I have tried to use the shorcode ultimate and when that didn’t work I used the media button (the one from wordpress).

    I think it has something to do with the theme I’m using (touchfolio) but not sure at this point…

Viewing 8 replies - 1 through 8 (of 8 total)
  • Topher

    (@topher1kenobe)

    It looks like that space isn’t configured to run shortcodes. Is that space controlled by a widget, or a theme option?

    Thread Starter luctrue

    (@luctrue)

    Yes. I believe you are correct. That space is part of a custom post type which uses the edit post wp backend but appears as part of a gallery that is part of the thmeme…

    Is there a way around it you think?

    Its no big deal really but its just one of those annoying problems for perfectionists! ??

    Topher

    (@topher1kenobe)

    There’s certainly a way around it, if you know where to put the right code. ??

    You want to wrap the output there in a function called do_shortcode().

    It’s probably part of your theme template. If you can find the right template, and in there find where it’s printing that stuff, just wrap that in do_shortcode() and it should work.

    Here’s an example I’m totally making up:

    echo $post->post_content;

    change to

    echo do_shortcode( $post->post_content );

    Thread Starter luctrue

    (@luctrue)

    Great. Thank you very much Topher. I will try this.

    Thread Starter luctrue

    (@luctrue)

    (link removed)
    you can see that now it the embed appears but does not play?

    Any thoughts?

    Topher

    (@topher1kenobe)

    I don’t see any obvious reason it’s not playing. I can access the file directly, so it’s not a permissions issue.

    I’m not strong with the audio player itself. I’m going to GUESS that it might not like some elements of the filename. I see you have a ?_=1 at the end, that might do it.

    You also have some accent marks here: éricPineault-invité, I suppose it’s possible the player wants only ASCII.

    But like I said, I’m not strong there, I could be completely wrong.

    I recommend starting a new ticket. The topic has really shifted from making shortcodes work in that content area to issues with the audio player.

    Nice job making the shortcode work BTW.

    Thread Starter luctrue

    (@luctrue)

    Thanks Topher!

    I will first try changing filename to ASCII characters and then, if still have problems will create new ticket as suggested by yourself.

    Thanks for the pat on the back ??

    Thread Starter luctrue

    (@luctrue)

    btw, the file was playing fine from the admin back-end, so I doubt it was the accents. Actually now that I tried the other renamed file, I know that removing the accents does not solve my problem. The file also plays from the attachment page with the same embed audio engine. Something seems like it is being filtered out… but what?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Audio embedding problem’ is closed to new replies.