Support

Account

Home Forums Feature Requests Taxonomy Field: Option to not save post_meta data

Solving

Taxonomy Field: Option to not save post_meta data

  • When using the taxonomy field, you can choose to save and load terms from the Taxonomy, however it looks like this still saves the data as post_meta ASWELL as saving to the taxonomy tables.

    It would be nice to have the option to not save post_meta data and only update the taxonomy tables if you wish.

    This would save clogging up the post_meta table with data that you might only ever be accessing through a taxonomy query or wp_query.

    I would argue that sometimes you might want to put the taxonomy options into a Custom Field to make the UI easier on the eye in the admin area when you have a lot of taxonomies.

    I’m not 100% sure if you can then hide the taxonomy boxes from the sidebar in WordPress without them disappearing from the Menu on the left hand side though?

  • When registering a taxonomy if you set the ‘meta_box_cb’ argument to false then the WP box for the taxonomy will not appear.

    I don’t know about the feature to prevent ACF from saving the values as normal. The best way to get feature requests looked at by the developer is to create a new support ticket: https://support.advancedcustomfields.com/new-ticket/

    It is possible to abort the saving of data to the field in WP using this: https://codex.wordpress.org/Plugin_API/Filter_Reference/update_(meta_type)_metadata

  • Thanks, I’ll send a ticket.

    I have removed the meta box, using
    remove_meta_box( 'product-groupsdiv', 'products', 'side' );
    though, didn’t know you could remove them when setting up the taxonomy, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.