• Resolved edithmayerhofer

    (@edithmayerhofer)


    Hi,
    I have custom post types “events” with a start and end date.
    If the event is finished, I have to remove these dates. I do this clicking on “remove all” and in the backend the date is not visible anymore. But it is still in the database and records still appear on the frontend with the old data (which should be removed).
    Is this a bug or do I miss something?

    https://wordpress.org/plugins/custom-content-type-manager/

Viewing 1 replies (of 1 total)
  • Plugin Contributor fireproofsocks

    (@fireproofsocks)

    This is by design: it’s pretty dangerous to delete data from the database, so the CCTM errors on the side of safety: the default setting will allow CCTM will allow you to delete the custom field definition, but not the data from the database.

    You can configure this behavior and operate in “safety off” mode by going to the CCTM –> Global Settings menu. Check the “Delete Custom Fields” option. Now if you delete a custom field, rows in the postmeta table will be deleted if their name (meta_key) matches the name of the field you’re deleting.

Viewing 1 replies (of 1 total)

The topic ‘custom date field cannot be removed’ is closed to new replies.