Giter VIP home page Giter VIP logo

Comments (3)

elliotcondon avatar elliotcondon commented on July 4, 2024 9

Hi @vacas

Thanks for the .json export, this made it possible to diagnose the issue.
The problem you are experiencing is simply due to multiple fields using the same "name" and therefore saving over each other in the DB.

The clone field contains an important setting called "Prefix Name". This is needed to modify the "name" or the cloned fields and allow them to save unequally.

Using the .json example provided, all 3 flexible content fields clones into the "Three Column Container" are saving to the DB with the same name. This is why they all load using the value of the last saved field.

Please read over the clone field documentation and make use of the "Prefix Name" setting for each clone field making sure the clone fields also contain a unique name.
https://www.advancedcustomfields.com/resources/clone/

from acf.

elliotcondon avatar elliotcondon commented on July 4, 2024 1

Hi @vacas

Thanks for the bug report.
Can you please export these field groups to a .json file and attach to your reply?

  • I'll import these locally and perform some testing.

My first thought is that the field name's are overwriting each other in the DB, but will need to review the field settings / DB results to be sure.

from acf.

vacas avatar vacas commented on July 4, 2024

Thanks for the quick reply, @elliotcondon!

Here are the fields:

acf-export-2018-05-07.json.zip

Since we've been working with the fields, I left the Three Column Container, instead of the Two Column Container from the previous example, but the result of the bug is still persisting, so this should work. I also included the other two components that is used within the example: the Content Box Component and the Write In Component. Lastly, there's another component I came up with that solves the problem for now, which is the Multiple Columns Container. Essentially, it's a repeater for Cloned components, just in case if you want to take a look into it.

Let me know if it works and if you need anything else!

from acf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.