WordPress.org

Ready to get started?Download WordPress

Forums

Simple Fields
audio plug ins (5 posts)

  1. peter213
    Member
    Posted 3 years ago #

    Pär, awesome plug in. quick question.
    I am using a custom textarea via simple fields and placing an mp3 in a plugins short code. http://wpaudioplayer.com/
    when published it just shows the link and not the audio player.
    is this possible to do? or do plug ins not always work together happily?
    thanks

    Peter

    http://wordpress.org/extend/plugins/simple-fields/

  2. Pär Thernström
    Member
    Plugin Author

    Posted 3 years ago #

    Hm, not sure I understand. Can you explain further, and perhaps give a link to a page where it doesn't work?

  3. peter213
    Member
    Posted 3 years ago #

    Pär
    I can show you but I suspect it the audio plug-in itself that is the culprit and not simple fields.

    And to explain better, when i place [audio http//www.mysite.com/public_enemy.mp3 | Night of the Living Baseheads] in a simple field's generated text area the WP Audio player does not appear, just the string of text. But again, I suspect it is WP Audio.

    P

  4. Pär Thernström
    Member
    Plugin Author

    Posted 3 years ago #

    How do you show that field on the site? How does the PHP-code look like?

    You may have to do something like this:

    <?php
    $content = ...get text content from simple fields text....;
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);
    echo $content;
    ?>

    That will make sure that shortcodes etc. works with the text you get from simple fields.

    Let me know if you understand this or need further assistance :)

  5. peter213
    Member
    Posted 3 years ago #

    thanks Pär, looking into it right now.
    p

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic