Delete by Two or More Custom Fields

Home Forums Bulk Delete Addons Delete Posts by Custom Field Delete by Two or More Custom Fields

We have replaced our forums with email based support system.

Please open a support ticket from our new support page.

This topic contains 1 reply, has 2 voices, and was last updated by  Sudar 6 years, 10 months ago.

  • Author
    Posts
  • #13371

    Richard Bergeron
    Participant

    Hi,

    I am wondering if it is possible to be able to delete by two different custom fields and their values?

    We have some tribe_events that we want to clean up, but the problem is how The Events Calendar handles recurring events.

    I was able to get Bulk Delete to successfully delete events that have an end date older than the current date, using these settings: https://www.screencast.com/t/jaTyn4oM but that also results in deleting recurring events series that are set up to recur forever.

    I think the reason for this is that when originally setting up a recurring event, you set the end date of the first event to the specific date at which it would end and that value is saved in the series. See here: https://www.screencast.com/t/s4Z0w0lx Bulk delete picks up that value and deletes the series.

    I would need some kind of multiple conditional option such as:

    “if _EventEndDate is less than yesterday AND post_parent is not equal to 0” then delete the event.

    Is this possible or is it maybe something that is in the works for the future?

    Thanks

  • #13372

    Sudar
    Keymaster

    Hello Richard,

    Currently it is not possible to delete based on two custom fields.

    But we are working on an add-on that is specific to The Events Calendar plugin that will provide an option to do this.

The forum ‘Delete Posts by Custom Field’ is closed to new topics and replies.