• I have added a series of custom attributes but in every case the text field is the same tiny size, which is not ideal since some of those attributes will potentially hold a chunk of text. Is there a way to specify a text field rather than the default text box so an admin adding an event will have a decent size text area to type into?

    Also curious if there’s some code to add separators and headings of some kind to the custom attributes area of the “add event” admin page. At the moment all my attributes are just lumped in one area under the “attributes” heading with columns “attribute name” and “value”, which is not the most helpful for anyone who’s new to the form.

    On a related note, I also activated the Custom Fields option, but when adding a new event I see no option to add new fields at all. When is that option supposed to show up?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Use the Custom Fields option which supports a textarea instead of a textbox. The documentation is here: https://wp-events-plugin.com/documentation/event-attributes/

    Thread Starter pipspeak

    (@pipspeak)

    As I mentioned, I’m not seeing the Custom Fields area when adding an event despite activating it in settings. Any idea why? Is there something else that needs to be turned on for it to show up?

    Follow the instructions here to enable custom fields (this method works for events as well as posts): https://www.dreamhost.com/blog/guide-to-wp-custom-fields/

    Thread Starter pipspeak

    (@pipspeak)

    By default all the events I post use the classic editor, so that option to enable the custom panel is simply not an option. Should I be seeing the block editor when adding an event? I cannot see an option to enable that in the plugin’s settings so I have to assume that if I should be able to use the block editor there must be a plugin conflict preventing that happening (I’m using the 2023 theme, WP 6.3, and the regular WP posts all use the block editor just fine).

    Edit: just figured it out — I had to add a filter to prevent ACF from messing with the option. Now I can see all the custom fields in the classic editor as expected.

    For anyone facing the same issue, just add this to your functions file:

    add_filter('acf/settings/remove_wp_meta_box', '__return_false');
    • This reply was modified 1 year, 2 months ago by pipspeak.
    • This reply was modified 1 year, 2 months ago by pipspeak.

    You don’t need to use the block editor. You can enable custom fields in the classic editor. While in the classic editor at the top right click on Screen Options and you will then be able to enable Custom Fields.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom attributes — make input more user friendly?’ is closed to new replies.