If you enable event attributes, and disable custom fields, any custom field not stating with _ will be considered a depreciated attribute if it’s not within your event formats or attributes box.
Similar situation – we’re using a gallery on posts, created by the Advanced Custom Fields plugin by Elliot Condon. For every picture I add to the gallery I get two ‘deprecated attributes’ showing up in the ‘attributes’ box. Allowing custom fields in the EM Settings doesn’t get rid of them. I’m also prevented from removing images from the gallery (because the custom fields effectively get re-posted as deprecated attributes). I have to clear these values to remove images.
Anyone got any tips on how to get Events Manager to ignore custom fields?
@richplane
you might want to see the attributes templates at /templates/forms/event/attributes.php
http://wp-events-plugin.com/documentation/using-template-files/
Thanks for the pointer, agelonwl – I can just comment out all the code that shows the “deprecated attributes” (lines 49-80 in the current version (5.1.7)).
‘Course it’ll all get overwritten on next upgrade! As I understand it, these admin templates can’t be stored in our theme.
It’d be nice to have an elegant fix for this – EM shouldn’t assume that all custom fields are to do with itself! I would suggest that when you remove an event attribute from the settings menu all the values associated with the deleted attribute get wiped at that point. That’s how I’d do it, but I’m not a WP plugin developer and there may be constraints I don’t know about.
In our case, we have custom fields and attributes both switched on in the settings, so I’m not sure why we were seeing anything here.
Just to clarify, the lines I commented out are in
\wp-content\plugins\event-manager\templates\forms\event\attributes.php
It’s an ugly hack but we have suffered no ill effects from it. Same lines in the latest version (5.1.8.5).
Also, for any EM authors watching: it’s “deprecated” not “depreciated”!
http://en.wikipedia.org/wiki/Deprecation
whilst it’s a typo i think depricated still works according to the first line on there 🙂
Hi!
I have thew same problem of activefantasies with the plugin Transposh. When my users publish their events, attributes box displays: If you see any attributes under here, that means they’re not used in Events Manager formats. To add them, you need to add the custom attribute again to a formatting option in the settings page. To remove any of these depreciated attributes, give it a blank value and save. Attribute name: transposh_can_translate Value: true. Reading this discussion I don’t understand how to fix… can you help me step by step? I’m not english so I may have some problems… Thank you very much!