-
Notifications
You must be signed in to change notification settings - Fork 32
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
Associative arrays as property value don't work. #62
Comments
Thanks for your issue! I have tested this and can confirm that this is a bug. Will fix this later today. |
I have investigate this and even if I could add support for this I don't think it's a good idea since that it would only work when you have array like If you take a look at how the [repeater] is build it has a large So for now you have to use If you would like to be able to search in the database on your array values you have to do something like the repeater does. If you don't need that you could save a serialized array in the database. public function load_value($value, $slug, $post_id) {
return unserialize($value);
}
public function update_value($value, $slug, $post_id) {
return serialize($value);
} Hope that this helps you! |
Thank you for looking into this. How do you feel about introducing a helper functions, say |
So with this helper function the right html name would be returned? Let's assume that If so I think it's better to add a metod to
|
That sounds right, I guess 👍 |
I will look into it, added a new issue for that #63 |
Thanks for really great plugin. It looked very promising and didn't disappoint at most. Experienced one issue that really bugged me while trying to create a custom property that needs to store several types of values.
Given:
meta is saved, but looks like this (last row):
As a result
$value
is always empty.The text was updated successfully, but these errors were encountered: