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.

Post Attachments

  1. prelude
    Member

    I want to allow users to attach video, .doc, .ppt, etc. files to their posts. I have set the File Upload field to a Custom Field Name (didn't know if I needed to). However, when I go to read the post, the attachments don't show.

    How do I modify the loop or single.php to grab attachments stored by GF?

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  2. David Peralty

    You'll want to look at the following page:
    http://codex.wordpress.org/Custom_Fields

    It starts the discussion on how to work with custom fields.

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  3. prelude
    Member

    Thanks for the quick reply. Does/can GF save it as a normal wordpress attachment type so I can run for example get_post_mime_type() ?

    Posted 12 years ago on Friday May 11, 2012 | Permalink
  4. David Peralty

    I don't think it does, but you can still run a function on it to do the mime_type test.

    Posted 12 years ago on Friday May 11, 2012 | Permalink