Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
Yes, please delete that field from the ACF field group then you can do the migration then.
Let me know how it goes.
April 24, 2023 at 10:18 PM in reply to: How to show values of a parent child post type using custom fields #41600Peter
ModeratorHello,
The argument
post_parent__inaccept an array of post IDs, it does not work with a string likeparent. The MB builder also does not support passing a dynamic value, you need to add specific IDs or use the code to register the custom field to pass the dynamic value.Please read more on the following documentation
https://docs.metabox.io/category/developer-guides/
https://developer.wordpress.org/reference/classes/wp_query/Peter
ModeratorHello,
I got the issue. There is a field type
acfe_post_statuseswhich comes from a third-party plugin, not a native field type of ACF so there is no corresponding field type in Meta Box to display that field and it breaks the field group.I remove this field type from the JSON file and import the field group to my local site and it works correctly.
You can download the fixed JSON file here https://drive.google.com/file/d/18C6EsnKiWQetmaMpSJFUoPEeILYnd8wH/view?usp=share_link
and import it to your site.Peter
ModeratorHello Kevin,
You might need to use the function
rwmb_get_registry()to get all fields. Please read more here https://docs.metabox.io/functions/rwmb-get-registry/Peter
ModeratorHello Andrew,
Please update Meta Box, MB extensions to the latest version, then deactivate all other plugins, switch to a standard theme of WordPress and migrate the field group again.
If it does not help, can you please share some screenshots of the issue and export the field group to a JSON file and share it here? I will take a look.
Please read more on the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
Peter
ModeratorHello,
Currently, there are no capabilities like that for other default post types of Meta Box, just for CPT
meta-box(Field Groups). It would be a feature request and I will inform our development team to consider supporting this feature in future updates.Peter
ModeratorHello,
I see the field values are saved to the custom table correctly. In the View code, the field "Choose an option" has the ID
choose_an_optionbut you add the IDchoose_an_optionsto get the value and it returns nothing.{% set options = post.choose_an_options.value %}Peter
ModeratorHello,
There are 3 capabilities registered to control the field group, not the relationship. You can find them in the file /meta-box-builder/src/PostType.php
But Meta Box does not support controlling the capabilities for user roles, it is the feature of a third-party plugin. I hope that makes sense.Peter
ModeratorHello,
It looks like there is a plugin that modifies the WordPress query. I've deactivated all plugins except Meta Box, MB AIO then the relationship posts display as well on the frontend.
Peter
ModeratorHmm, I do not see any issue with the provided information. Please share your site credentials via this contact form https://metabox.io/contact/
and let me know where I can see the issue on your site.Peter
ModeratorHello,
I import the shared JSON file to my local host, assign it to a post type, create a new post and add some value to the custom fields but do not see any issue.
You can try to delete some choice fields in the field group on your site like checkbox, radio, taxonomy ... and check this issue again.
Peter
ModeratorHello,
I do not see the relationship ID in the screenshot, can you please take a full screenshot?
April 21, 2023 at 6:19 PM in reply to: Using Meta Box Field to Restrict Content to Logged-in Users #41576Peter
ModeratorHello Bret,
I suggest you can try to add all arguments to the helper function
rwmb_meta(), for example:rwmb_meta( 'privacy', '', 123 );where 123 is the attachment ID. Because the helper function is not executed in a loop so you need to add the post ID to the third argument.
Or you can try to use the function
get_post_meta()if the code is executed earlier than theinithook with priority 20.Please read more on the documentation
https://docs.metabox.io/functions/rwmb-meta/
https://developer.wordpress.org/reference/functions/get_post_meta/Peter
ModeratorHello,
Please share a screenshot of the relationship settings or generate the PHP code and paste it here, I will check if there is an issue with the settings.
You may try to change the relation parameterfromtotoand add a specific post ID instead offilmmaker.IDto see how it works.Peter
ModeratorHello,
I do not see any issue with that relationship settings. Please share your site credentials via this contact form https://metabox.io/contact/ and let me know where I can see the issue. I will take a closer look.
-
AuthorPosts