Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorThis is a conflict issue with another plugin. Deactivate all plugins except Meta Box and MB AIO to resolve this.
March 1, 2023 at 9:54 PM in reply to: ℹ️Samples Request Email Form with thumbnails pulled from CPTs featured image. #40779Peter
ModeratorHello Andy,
Meta Box supports a field to select posts of a CPT but it does not support displaying the feature image in the selection like that.
https://docs.metabox.io/fields/post/If you are familiar with coding, you can create your own field type by following the documentation https://docs.metabox.io/creating-new-field-types/
Peter
ModeratorHello,
It could be Fluent Forms is not compatible with MB User Profile. Please contact their support to get further assistance. Thanks.
Peter
ModeratorHello,
The fourth field group could be hidden by a conditional logic or advanced location rule. Can you please recheck this? If you don't find that, please export the field group to a JSON file and share it here. I will import it to my local site and take a look.
Peter
ModeratorHello Alexandre,
Can you please create a new topic with the details of the issue? I will help you to check that. Thanks.
Peter
ModeratorHello,
You can follow the documentation below to add the query args in the builder but some PHP functions are not supported adding in the builder like
strtotime(),date()
https://docs.metabox.io/extensions/meta-box-builder/#dot-notationMarch 1, 2023 at 6:15 PM in reply to: Selecting many relationships taxes forever (more efficient way)?? #40772Peter
ModeratorHello,
I will inform the development team to consider supporting this feature for the relationship selection. Thanks.
Additionally, you can use the field type checkbox_list to select more posts. For example:
MB_Relationships_API::register( [ 'id' => 'job-to-post', 'from' => [ 'object_type' => 'post', 'post_type' => 'my-job', 'field' => [ 'field_type' => 'select' ] ], 'to' => [ 'object_type' => 'post', 'post_type' => 'post', 'field' => [ 'field_type' => 'checkbox_list' ] ], ] ); }Please read more on the documentation https://docs.metabox.io/extensions/mb-relationships/#using-code
https://docs.metabox.io/fields/post/Peter
ModeratorHello,
Thanks, I see that issue. The custom fields are associated with the post type
ticketso if you use the shortcode or assign the view template to a single page, the codepost.ticketwill return nothing because there is no field valueticketassociated with the page.To display a custom field associated with a post on a page, you can use the helper function
rwmb_meta()and pass the post ID to the third parameter to get the field value.For example:
{% set tickets = mb.rwmb_meta( 'ticket', '', 123 ) %} {% for clone in tickets %} ...where 123 is the ticket post ID.
Please read more on the documentation
https://docs.metabox.io/functions/rwmb-meta/
https://docs.metabox.io/extensions/mb-views/#running-php-functionsPeter
ModeratorHello,
Yes, I think it is possible. You can read more on the documentation https://fluentforms.com/connect-meta-box-wordpress-with-fluent-forms/
The Fluent Forms team maintains the integration with Meta Box so I recommend contacting Fluent Forms support to get further assistance.
https://docs.metabox.io/compatibility/Peter
ModeratorHello,
Yes, I see the post title work on the page https://sfgqualitymark.org.uk/green-care-form/
But I'm not sure why this happens on another page without some troubleshooting steps. Can you please copy your site to a staging site and do the test there?Peter
ModeratorHello,
I've replied to your ticket a few days ago about the incorrect account. Can you please recheck that?
Peter
ModeratorHello,
The code looks good and works correctly on my local site. Can you please share some screenshots of the View template, post editing and value output?
Peter
ModeratorHello,
Please check this code for example:
function my_unique_filename_callback( $dir, $name, $ext ) { $name = substr(md5($name), 0, 10); return $name . $ext; } add_filter( 'rwmb_meta_boxes', 'ajf_randomize_uploaded_filename' ); function ajf_randomize_uploaded_filename( $meta_boxes ) { $meta_boxes[] = [ 'title' => __( 'My User Meta', 'your-text-domain' ), 'id' => 'my-user-meta', 'type' => 'user', 'fields' => [ [ 'name' => __( 'File', 'resume' ), 'id' => 'file', 'type' => 'file', 'upload_dir' => WP_CONTENT_DIR . '/uploads/resumes/', 'unique_filename_callback' => 'my_unique_filename_callback', ], ], ]; return $meta_boxes; }If you don't know how to use the code to register custom fields and meta box, please read more on the documentation https://docs.metabox.io/creating-fields-with-code/
February 28, 2023 at 5:59 PM in reply to: Bug: Conditional Logic Set On Value Of Taxonomy Custom Field Prevents Post Save #40755Peter
ModeratorHello,
Thanks for following up. This issue relates to the extension MB Builder, not Meta Box itself. This issue is in our development queue so please wait for the next updates of our plugins.
February 28, 2023 at 5:51 PM in reply to: ℹ️[Feature Request] Conditional Logic For Relationships #40754Peter
ModeratorHello,
Each meta box relationship has the ID with the following format
relatioshipID_relationships_fromorrelatioshipID_relationships_to. You can use conditional logic outside of meta box with that ID to show/hide the relationship meta box. Please read more on the documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/#using-outside-meta-boxes -
AuthorPosts