Forum Replies Created
-
AuthorPosts
-
harryb
ParticipantIncreasing input_vars did not work for me unfortunately. Cannot add more than 30 fields.
February 1, 2024 at 2:06 AM in reply to: ✅Unable to save in Bricks Builder after updating to 1.24.1 #44448harryb
ParticipantSame issue here. Disabling the MB Revision extension solves it.
harryb
ParticipantMany thanks, here's the json.
{
"post_type": "meta-box",
"post_title": "Custom Categories Background Colours",
"post_date": "2023-08-16 13:43:24",
"post_status": "publish",
"post_content": "",
"settings": {
"object_type": "term",
"taxonomies": [
"bcb-categories",
"bcb-holidays-categories"
],
"tab_style": "",
"tab_default_active": "",
"custom_table": {
"name": ""
},
"class": "",
"prefix": "",
"text_domain": "your-text-domain",
"function_name": "your_prefix_function_name"
},
"fields": {
"color_j43ypdodekq": {
"_id": "color_j43ypdodekq",
"name": "Category Background Colour",
"id": "custom_category_background_colour",
"type": "color",
"label_description": "",
"desc": "",
"std": "",
"min_clone": "",
"max_clone": "",
"add_button": "",
"admin_columns": {
"position": {
"type": "after",
"column": "title"
},
"title": "",
"before": "",
"after": "",
"sort": false,
"link": false
},
"columns": 12,
"tooltip": {
"icon": "",
"position": "top",
"content": ""
},
"before": "",
"after": "",
"class": "",
"sanitize_callback": "",
"save_field": true
}
},
"data": [],
"meta_box": {
"title": "Custom Categories Background Colours",
"id": "bcb-categories-background-colour",
"taxonomies": [
"bcb-categories",
"bcb-holidays-categories"
],
"text_domain": "your-text-domain",
"function_name": "your_prefix_function_name",
"fields": [
{
"name": "Category Background Colour",
"id": "custom_category_background_colour",
"type": "color"
}
]
}
}harryb
ParticipantMany thanks for the fast reply.
I do not remember hitting the update button multiple times but it is possible I suppose.
I note that you said this issue would be fixed in the next update but that was a year ago. Is it not possible to fix it?
Harry
December 15, 2022 at 5:47 PM in reply to: ✅Field Group Removed From Settings Page After 20 Custom Fields (using Fieldset) #39816harryb
ParticipantUPDATE: Increasing the input var limit seems to have solved the issue.
harryb
ParticipantAnd just checking this would be ok also?
Bob Smith: Bob Smith
Mary Smith: Mary Smith
Bob and Mary Smith: Bob & Mary Smithharryb
ParticipantThat's great - many thanks Long. So just to check, if the select choices should be: "Bob Smith", "Mary Smith" and "Bob and Mary Smith", it would be entered in the builder as:
Bob Smith: Bob Smith
Mary Smith: Mary Smith
Bob and Mary Smith: Bob and Mary SmithThanks,
Harry
harryb
ParticipantHi Long - so here's the php for the select fields (personal names removed). As I said, the problem is that when you go back into the page to edit, the field does not show what was saved previously even though the correct information shows on the front end.
[ 'name' => __( 'Host', 'your-text-domain' ), 'id' => $prefix . 'event_host', 'type' => 'select', 'options' => [ 'TBC' => __( 'TBC', 'your-text-domain' ), 'Long Event - Several Hosts' => __( 'Long Event - Several Hosts', 'your-text-domain' ), 'XXX1' => __( 'XXX1', 'your-text-domain' ), 'XXX2' => __( 'XXX2', 'your-text-domain' ), 'XXX3' => __( 'XXX3', 'your-text-domain' ), 'XXX4' => __( 'XXX4', 'your-text-domain' ), 'XXX5' => __( 'XXX5', 'your-text-domain' ), 'XXX6' => __( 'XXX6', 'your-text-domain' ), 'XXX7' => __( 'XXX7', 'your-text-domain' ), 'XXX8' => __( 'XXX8', 'your-text-domain' ), ], 'required' => true, ],harryb
ParticipantHi Long - many thanks.
In fact, it does noes not overwrite with the default if you update the page but whatever is at the top of the select list is what shows in the field - even if you have selected something further down the list and saved previously. This means if you go to edit the page, you can't be sure the correct value has been selected from the Select field or not.
These are just text fields created using MB AIO so I'm not sure what code I can send you? Please let me know and I'll send it over.
harryb
ParticipantThanks so much Long - I knew there would be something logical to explain it. Makes perfect sense. Many thanks for your help.
Harry
harryb
ParticipantHi Long - apologies for the confusion but I'm talking about native Metabox CPTs.
I create a CPT using Metabox and everything works normally, I can write posts using that CPT and everything is great.
However, if I later edit the CPT names (for example, perhaps I might want to change the chosen plural name so I edit it in Metabox and update). When I go back to the CPT in WP admin all the posts have disappeared. If I change the edit back then the CPT posts are returned.
I have tried re-saving permalinks but that doesn't solve the porblem.
-
AuthorPosts