WordPress.org

Forums

Mp3 player
[resolved] use in template or sidebar?? (4 posts)

  1. somethingelse
    Member
    Posted 2 years ago #

    hi
    any suggestions on how i might attach the mp3s to a sidebar widget?
    the player shows up just fine using the shortcode in a text widget, but i can't figure out how to add the mp3s... i assume it needs to be via "attachments" not just links (i tried adding links to the mp3s to the widget, then hiding them with css, but that didn't work).

    i really want to use this in the header of a band site i'm building...

    http://wordpress.org/extend/plugins/mp3-player/

  2. simonhans
    Member
    Plugin Author

    Posted 2 years ago #

    This should work:

    $temp=$post->ID;
    $post->ID=51;
    echo do_shortcode('[mp3]');
    $post->ID=$temp;
  3. simonhans
    Member
    Plugin Author

    Posted 2 years ago #

    Where $post->ID is your page or post id with your mp3-files

  4. simonhans
    Member
    Plugin Author

    Posted 2 years ago #

    Hope this solves your problem

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Mp3 player
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.