-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post meta values replaced when there are multiple same block. #14545
Comments
Not sure I undersand the question
Who is replacing which value? Can't you expand more? |
My question is same as this thread #5599
When you have same two blocks the value of "catID" is replacing because one post meta has been used for both fields. |
Well, that's "normal" because you're using the same post_meta for both, if you change one, it changes everywhere. If you want separate values per block you shouldn't use a post_meta for this or you should use a different meta key. |
Thats a big limitation. It would have been easy if we have "block_meta" table like "wp_postmeta". All the block attributes are save on "block_meta" instead on the_content(). and we can do something like this to get the block data.
A separate table for blocks. Just my view. |
The backend at the moment has no knowledge about blocks, so there's no block_id etc... Adding such feature is not our current roadmap. It's a big feature and it's not clear what user user-case this would solve. Thanks for the suggestion, let's reconsider if there's more similar feedback. |
When you add multiple same blocks and the values of the block are saved in post meta, it seems it is replacing the values. I can save the value in attribute but I don't want that. What is the best way to handle this ??
The text was updated successfully, but these errors were encountered: