Forum Replies Created
-
AuthorPosts
-
May 27, 2025 at 11:26 PM in reply to: ✅Upgraded to AIO, now meta fields won't display unless free MB is activated #48331
Max Elman
ParticipantCan you reply regarding my snippet above please? Thank you
May 21, 2025 at 10:30 PM in reply to: ✅Upgraded to AIO, now meta fields won't display unless free MB is activated #48304Max Elman
ParticipantOK. I'm still interested in a fallback function if AIO is disabled - so that CPT data is still displayed. Should my function above work for that?
May 21, 2025 at 12:35 AM in reply to: ✅Upgraded to AIO, now meta fields won't display unless free MB is activated #48300Max Elman
ParticipantHello - I'd like a fallback function that still works with AIO. Would this work?
if ( !function_exists( 'rwmb_meta' ) && !in_array( 'meta-box-aio/meta-box-aio.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { function rwmb_meta( $field_id, $args = '', $object_id = null ) { if ( null === $object_id ) { $object_id = get_the_ID(); } return get_post_meta( $object_id, $field_id, true ); } }May 14, 2025 at 10:19 PM in reply to: ✅Upgraded to AIO, now meta fields won't display unless free MB is activated #48257Max Elman
ParticipantOk. Is there a version of this code that works with the AIO plugin? This fallback function only works with the base plugin.
Ideally I’d like a function that works with AIO and also protects the site if AIO is deactivated.
May 13, 2025 at 12:14 AM in reply to: ✅Upgraded to AIO, now meta fields won't display unless free MB is activated #48231Max Elman
ParticipantI now see the problem - we had this legacy code in a helper plugin:
// Avoid Undefined Function Error when Meta Box is not active. if ( ! function_exists( 'rwmb_meta' ) ) { function rwmb_meta( $key, $args = '', $post_id = null ) { return false; } }Removing the code fixed the problem.
I see many mentions of that snippet still online - perhaps AIO can be edited to better deal with that code if present.
May 12, 2025 at 10:25 PM in reply to: ✅Upgraded to AIO, now meta fields won't display unless free MB is activated #48226Max Elman
ParticipantYes, I am using Meta Box AIO 2.2.0
Max Elman
ParticipantHi, thanks for the reply.
I do have the latest version of all MB plugins and this is the only CPT with that issue, out of 10 CPTs.
But it's ok, I'll keep an eye for it on my other sites.
Thanks!Max Elman
ParticipantYes - we figured that out a few days ago. We'd like to use that slug name. Do you know what is the problem with using "video"? Thank you!
Max Elman
ParticipantInfo uploaded.
Max Elman
ParticipantActually no. I can't get your contact form to submit. Lots of console errors involving freshworks / freshdesk.com and this:
Access has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Maybe time to update your embed code.
Max Elman
ParticipantSent
Max Elman
ParticipantHi Long,
Deleting and creating the CPT again didn't solve anything either.
Max Elman
ParticipantActually, the icons are working now, I just had to reselect the icon I wanted and it showed up. Also just noticed that now there is no default icon selected anymore.
However, one of my CPTs is still blank. At least the title should be showing up.
Max Elman
ParticipantHi Long,
Unfortunately, updating the plugin did not solve any of my issues.
October 5, 2020 at 11:16 PM in reply to: ✅MB Custom Post Types and Custom Taxonomies 2.0.1 deleted some CPT and taxonomies #22300Max Elman
ParticipantThank you. Why were some sites ok and some broken? Due to character encoding?
-
AuthorPosts