Support

Home Forums Event Espresso Premium Custom Field not storing for future events

Custom Field not storing for future events

Posted: August 11, 2022 at 4:56 pm

Viewing 3 reply threads


dave Segal

August 11, 2022 at 4:56 pm

I’ve been using a custom field zoom-link in my events. It has been available as a dropdown without problems.
After installing Learndash this option has disapeared in the custom field dropdown.
I need to create a new custom field each time with the value zoom-link.
Could anyone help me get this custom-filed to remain in the dropdown?


Tony

  • Support Staff

August 11, 2022 at 5:31 pm

Hi there,

By default, WordPress has a limit of 30 meta_key fields to pull in when displaying that dropdown so could just be that your zoom link zoom-link meta key is now outside of that range.

Are you comfortable with PHP?

If so you can add a snippet like this to your site:

add_filter( 'postmeta_form_limit', function( $limit ) {
    return 50;
} );

Which increases the limit to 50, with that code in place does the zoom-link ket load?

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Note – you can try a limit higher to confirm if this is the problem if you still don’t see the key, just note that increasing the limit obviously means a bigger dropdown.


dave Segal

August 11, 2022 at 6:08 pm

Thanks Tony, I have done this and increased to 80 and it worked!
Quick and accurate helpful response thank you.


Tony

  • Support Staff

August 12, 2022 at 11:00 am

Great, I’m glad that worked 🙂

Any further issues just let us know.

Viewing 3 reply threads

The support post ‘Custom Field not storing for future events’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso