WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] Backwards compatibility (3 posts)

  1. deltafactory
    Member
    Posted 1 year ago #

    Just a simple request from a fellow coder who has otherwise had a wonderful time building applications with this plugin:

    Please try not to change the storage format for your metadata suddenly. Or when you do, a) provide a way for developers to alter it and b) let us know in the changelogs.

    Specifically, the change for Relationship fields in v3.3.3 from comma-separated to PHP-serialized has just broken some code. I was using a relationship field with a single value and was querying against the post ID directly.

    I understand that most of the users/customers of this plugin never touch a line of code, or use your API calls as provided. I am not in either group. :)

    Besides that, thanks for creating a great plugin that is both useful and well-coded with other developers like myself in mind.

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi deltafactory,

    I do apologist for the inconvenience, but this was a necessary change for the better

    You can read about querying the new value here:
    http://www.advancedcustomfields.com/docs/field-types/relationship/

  3. deltafactory
    Member
    Posted 1 year ago #

    As an alternative, I am using the save_post hook (priority 21 so as to come after ACF's execution - another unexpected change) and used the resulting array of get_field() to create my own list of comma-separated IDs and store it in a separate post meta key.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.