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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.