Simple Fields
audio plug ins (5 posts)

  1. peter213
    Posted 4 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?



  2. Pär Thernström
    Plugin Author

    Posted 4 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
    Posted 4 years ago #

    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.


  4. Pär Thernström
    Plugin Author

    Posted 4 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:

    $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
    Posted 4 years ago #

    thanks Pär, looking into it right now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic