WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Strange 'Depreciated Attributes' when using custom meta boxes. (9 posts)

  1. activefantasies
    Member
    Posted 2 years ago #

    I have added a custom meta box to the event post type using the default wordpress functions. This causes an area to appear in the 'Attributes' meta box saying:

    'Depreciated Attributes

    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.'

    ..followed by a listing of the

    Is there any way to stop this happening? It's not relevant to the custom meta box and fields that I've added and will confuse my client.

    Thanks!

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    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.

  3. richplane
    Member
    Posted 1 year ago #

    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?

  4. agelonwl
    Member
    Posted 1 year ago #

    @richplane

    you might want to see the attributes templates at /templates/forms/event/attributes.php

    http://wp-events-plugin.com/documentation/using-template-files/

  5. richplane
    Member
    Posted 1 year ago #

    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.

  6. richplane
    Member
    Posted 1 year ago #

    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

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    whilst it's a typo i think depricated still works according to the first line on there :)

  8. grafica.villcom
    Member
    Posted 1 year ago #

    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!

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic