Forum Replies Created
-
AuthorPosts
-
January 9, 2026 at 1:46 AM in reply to: After importing a metabox, its field custom attributes are not editable #49607
pza
ParticipantI said custom attributes but it seems I meant "custom settings".
January 9, 2026 at 1:45 AM in reply to: After importing a metabox, its field custom attributes are not editable #49606pza
ParticipantAlso:
On the staging site I tried saving a new attribute for 1 field, AND overwriting the existing attribute via the MB Builder UI -- which worked ok. But still do not see the custom attributes in the UI for any field.September 25, 2025 at 1:00 AM in reply to: Unable to load MB Frontend Submission via Ajax - Permissions not allowed #49044pza
ParticipantAny chance ajax loading of frontend-submission forms is possible yet, or on the roadmap? For better performance I would love to load the forms only if they are needed.
pza
ParticipantHi and thanks for your reply. I understand how Relationships work, and have used them successfully in various cases.
This time I was going for this:
- Profiles are already assigned to Category taxonomy
- I'm using a relationship "profile_featured_in_category" to indicate if the profile should be highlighted, not only classified in the Category.Also I would be able to query "all featured profiles" regardless of which Category or Profile.
I know I could do this with a tax_advanced field, and may have to. But then I lose out on the benefits of Relationships.
Thanks again.
pza
ParticipantI thought "exists" and "not exists" were not very different. But sure, I'll make another topic.
Using advanced taxonomy is possible but misses out on the advantages of Relationships, like performance and being able to view the connection from both sides.
pza
ParticipantHey, I'm making a suggestion here instead of a new post.
It seems like there's no way to query for objects that simply have a relationship ID.
It would be great if the 'relationship' query argument could accept EXISTS or NOT EXISTS. Similar to meta_query. Instead of passing it via "to" or "from" maybe introduce the "compare" param?
So for a modified example based on the documentation, something like this:
$query = new WP_Query( [ 'relationship' => [ [ 'id' => 'events_to_bands', 'compare' => "EXISTS" ], ], ] );If this is not feasible, is there already a way to query all objects with a particular relationship?
Now I'm using Relationships to "feature" a post in a category (which they are, separately, also categorized in).
But if I can't query all related (featured) posts, I will have to use a field like "taxonomy_advanced" field which is less ideal for my case.
Thanks!
October 17, 2024 at 5:04 AM in reply to: โ WYISWG editor do not work inside nested group on some instances #46711pza
ParticipantI'm also experiencing this. I worked around the white text issue with some custom CSS on admin side.
Still have the issue switching between text/visual.
Notably, and at least for me, the first WYSIWYG I expand (within a double nested, collapsed group) works fine. Any subsequent editors have the switching issue.
pza
ParticipantI had the same issue and here's what fixed it for me:
If you have multiple MB Frontend forms on the same page, they each need to use the captcha key/secret.
pza
ParticipantAre there any ways to filter out the "add new" option? I'm using it in a shortcode with multiple custom field groups.
So, it seems you can target the relationship meta box as a normal field group using the same ID as in the form shortcode:
<?php add_action( "rwmb_before_REL_ID_relationships_to", function( $meta_box ) { echo '<div id="customID">'; } ); add_action( "rwmb_after_REL_ID_relationships_to", function( $meta_box ) { echo '</div>'; } );Maybe you can do something similar with validate hooks to change the "add new" option?
Or as a last resort, give the container ID above and target it with CSS#customID .addnew-class { display: none; }Note this hook is after/within the
.rwmb-meta-boxcontainer -- which doesn't help my case, since that's the div I was trying to hook into.I have a really nice, orderly frontend form with tabs. Then at the end ... some select (relationship) fields which I can't control the labels or width of ๐
Suggestion
Ideally a relationship field would work with any MB post/term/user field.Then just like the "Set as parent" option, there could be a "Set relationship" option. It would also need to input/select a relationship ID. On save, the current editing object would have the applicable relationships updated.
I nearly set up several tax_advanced/user/post fields for my case. Then on-save I would need to check that relationship every time, check/delete all existing relationships (looping through them since there's no function to delete all), and set the new relationships according to field input.
I think it can work....but for now I'm just using the somewhat-random fields at the end of my form.
Hopefully the devs consider this ๐ because it would be awesome to manage relationships anywhere within a form/field group, plus control metabox attributes, CSS ID, columns etc.
pza
ParticipantThere's the meta key I was looking for, thanks!
If I delete it the user can log in as normal?
A "manual confirm" button on the user screen would be great, like in this case where the user contacted me with their email/account info. And I want to save them the trouble of doing it again (esp. when they have email issues). Thanks again.
pza
ParticipantI don't know why this keeps happening every time I import certain field groups from other websites of mine...
But for my future reference, and in case anyone else runs into this issue, here's a little javascript to run in the browser console.
It opens up the "Advanced" tab of each field, on the Edit Field Group page.
jQuery('.og-item__header.og-collapsible__header:not(.og-collapsible--expanded)').trigger('click'); jQuery('.og-item__body.og-collapsible__body .react-tabs__tab-list li:last-child').trigger('click');Then I can quickly search if "Save field" is checked...saves a lot of time.
pza
ParticipantJust wanted to add this idea/feature request:
I think "Relationship" as a field type (similar to "Post" field type) would help alot. Then it could be integrated better within field groups.
I'm using various relationships that make more sense alongside the other fields. Thanks again!
September 25, 2022 at 12:00 AM in reply to: โ Can't save location for custom field groups, always reverts to POSTS #38412pza
ParticipantYou can try to follow this tutorial to increase the PHP setting max_input_vars to fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Wowow, thank you.
This was the issue for me on a couple sites. Makes sense because I couldn't track it to any other variable, despite many hours trying.
Maybe it's obvious, but I want to add:
If using Builder, make sure to re-save your Field Group "Settings" such as the post type.
Because when attempting to save (with insufficient
max_input_vars) something is corrupted, resulting in invalid EXPORT code also.Devs: is it possible to make the save FAIL or give a warning, instead of doing what appears to be a partial save (thus corrupting the Field Group settings + export (php & json))?
This is such a devastating issue to run into, because it only affects sites with many fieldsโ although I wouldn't consider the fields I'm using to be incredibly complex. On my latest site, I'm not even using groups.
Like others I tried many workarounds which were not reliably successful.
If you haven't already it probably deserves a big fat WARNING on the Builder docs page...Are there other ways to mitigate this issue moving forward? Maybe deleting unused fields before submission? I don't know, it's a bit over my head.
I'm relieved that I know the cause now. Thank you again.
pza
ParticipantFor example if I have a relationship ID
profiles_to_categories(post typeprofileto taxonomycategory)And I want to clear any relationship (to a category) by a profile ID.
January 25, 2022 at 8:43 PM in reply to: โ Can't save location for custom field groups, always reverts to POSTS #33449pza
ParticipantI tested a bit more. My temporary work-around was to delete an unneeded field. Then for some reason it saved the fieldgroup "settings" fine. This worked by deleting either a text or heading field.
But it would not let me first save a new field, to then delete. Not sure why. So something about the stored value of the
fields, causing thesettingsnot to save?If it helps, this is a site which I have not used builder for a long time, probably since before the UI change.
-
AuthorPosts