Home › Forums › General Issues › Custom Data Model For Files › Reply To: Custom Data Model For Files
Thanks John Huebner,
Here is my attempt at a better explanation. The part that is different for me is “When you upload a file this file is saved as a “post” of the post type “attachment” which is how WP stores all uploaded files.” I am working on a site which is being moved to wordpress from a non-wordpress site. As a result the attachment file structure is not standard for wordpress. The way they exist right now is 1. Each attachment exists in a custom attachment directory 2. Each attachment has a wp_postmeta entry which associates the file-path of the attachment to a post. It sounds like you are advising that I change my data model and file structure to what ACF expects (which is also “how wordpress does it”?). What I want is to use the plugin with my current data model, but if there are significant advantages to changing my data model, I am open to it. So far, ACF is the only thing that doesn’t work with my current data model, but if there will be other problems down the road, I might consider changing it. That attempt at a better explanation may have been a bit disorganized, I can try again if needed
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.