PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

New user question: File upload and posts

  1. balougravity
    Member

    1) On my site (for musicians) I renamed my blog page to "Songs for review"
    2) I created a form where users (logged in only) can write a short text and upload a song (=mp3 file)
    3) This should be posted on the blog (see step 1) so other users could listen to the song and give a 5 star rating

    Problem:
    The posting does appear (title and comment) but the mp3 is not visible....hence the audio player is not visible either....

    Any ideas?

    Posted 11 years ago on Tuesday March 26, 2013 | Permalink
  2. David Peralty

    How are you attaching the song to the post? Are you using a custom field? Are you writing a function? Are you using Post Templates? I would need more information on how you are connecting the file upload to your blog post.

    Posted 11 years ago on Tuesday March 26, 2013 | Permalink
  3. balougravity
    Member

    This is what I did so far:
    1) I use a custom field, field type "file upload"
    2) In post body I use "Create content template" and select: {Post Custom Field:5}
    3) The post appears in the blog but the file (a mp3 file) ist not attached/embedded (which would trigger the audio player to be visible but it shows the path to the file as text:

    (http://www.wp11148787.server-he.de/wp-content/uploads/gravity_forms/3-919fe02b414d6f40d7803abfb4b0eae5/2013/03/genuflect1.mp3

    Posted 11 years ago on Wednesday March 27, 2013 | Permalink
  4. David Peralty

    Right, so you need to wrap the merge tag with HTML for embedding the MP3 in a way that it triggers your media player. You'll want to look that up as you are really close to getting it to work. All my best!

    Posted 11 years ago on Wednesday March 27, 2013 | Permalink
  5. balougravity
    Member

    Thanks David! I think I got it :-)

    And this the result: http://www.wp11148787.server-he.de/test-12/

    Your product truly ROCKS!

    Rainer

    Posted 11 years ago on Wednesday March 27, 2013 | Permalink
  6. Thank you for the update.

    Posted 11 years ago on Sunday March 31, 2013 | Permalink

This topic has been resolved and has been closed to new replies.