Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello there,
It is not possible to use a block (Gutenberg) editor in a custom field (textarea or WYSIWYG). You can do versa, use a custom field in a block editor by using the extension MB Blocks. Please read more on the documentation https://docs.metabox.io/extensions/mb-blocks/
January 28, 2023 at 10:49 AM in reply to: How to set Title on CPT from custom field value instead of Auto-Draft defaults #40331Peter
ModeratorHello,
The pretty permalink (post name) is generated from the post title so if you do not have the post title, it might not work properly. You can read more here https://wordpress.stackexchange.com/questions/43102/permalink-not-working-for-page-without-title
It's the standard feature of WordPress so I highly recommend using the standard post title when registering the CPT. You can use the custom field value to replace the post title after saving the post.
Peter
ModeratorGreat.
Let me know if you have any questions.January 28, 2023 at 10:08 AM in reply to: ✅Get CPT title for hidden custom form field in frontend subscription form #40329Peter
ModeratorHello,
The function
get_queried_object_id()will return the current post where the form is located. It would be the project ID.
The variable$post_idis thesubscriptionpost ID which will be created after submitting the post.So you can try to switch them and see if it works
MB_Relationships_API::add( $post_id, get_queried_object_id(), 'subscriber-to-project', $order_from = 1, $order_to = 1 );Peter
ModeratorHello Cees,
I think it is possible. When registering with code, you can get the post title of the CPT and use the setting
stdof the field to set the default value. Please read more on the documentation
https://docs.metabox.io/field-settings/January 28, 2023 at 9:53 AM in reply to: Custom field (checkbox) whose value is settable to only one post #40327Peter
ModeratorHello,
Do you mean to set a custom field available for only one specific post? If yes, you can use the feature MB Include Exclude or MB Conditional Logic. Please read more on the documentation
https://docs.metabox.io/extensions/meta-box-include-exclude/
https://docs.metabox.io/extensions/meta-box-conditional-logic/Peter
ModeratorHello,
Sorry for the late reply, we were on the holiday.
Unfortunately, this feature is only available in the admin area which is a core feature of WordPress. Also, the frontend dashboard only displays the post of the current user so it could avoid two users editing the same post at the same time.
January 27, 2023 at 10:44 PM in reply to: MB Block select_advanced product categories stored per page #40322Peter
ModeratorHello there,
The field taxonomy does not work with custom block or group field because it set post terms, no field value is saved. If you want to use the taxonomy selection, please use the field taxonomy_advanced.
Please read more on the documentation
https://docs.metabox.io/fields/taxonomy/
https://docs.metabox.io/fields/taxonomy-advanced/January 27, 2023 at 10:21 PM in reply to: Storing cloneable group with datetime field programmatically #40321Peter
ModeratorHello,
Can you please share the code that you use to update the group field value? I see it works as well on my demo site. Here is an example:
add_action( 'init', function() { $values = []; $values[0] = [ 'provider_management_group_note' => 'asdf1234' ]; $values[1] = [ 'provider_management_group_note' => '1234asdf' ]; rwmb_set_meta( 67516, 'provider_management_group', $values ); }, 99 );Peter
ModeratorHello there,
Thanks for your feedback.
This feature is added to the development queue and our development team will work on this feature. Hopefully, it will be available as soon as possible.
Peter
ModeratorHello there,
I think you can change your post type slug back to the previous one. Or use a third party plugin to change the post type of the post https://wordpress.org/plugins/post-type-switcher/
Peter
ModeratorHello Thomas,
Can you please share some screenshots of the issue? And the code in the View editor to display the field value, I will help you to check the issue.
January 23, 2023 at 10:03 PM in reply to: ✅Get CPT title for hidden custom form field in frontend subscription form #40290Peter
ModeratorHello,
Thanks, I understand your case. So if you want to add the relationship automatically, please refer to this topic https://support.metabox.io/topic/connecting-child-posts-to-a-parent-post-automatically/#post-35799
and the documentation https://docs.metabox.io/extensions/mb-relationships/#addLet me know how it goes.
Peter
ModeratorHello there,
Thanks for your feedback.
The mode hsl of the field color picker field does not look to work. I've escalated this to the development team to check it and get back to you later.
January 21, 2023 at 9:01 PM in reply to: ✅Get CPT title for hidden custom form field in frontend subscription form #40278Peter
ModeratorHello there,
So how the title of the project is processed? Do you want to add this title as a custom field to the subscription post created after submitting the form? Or create a relationship between the current project post and the subscription post created?
-
AuthorPosts