Forum Replies Created
-
AuthorPosts
-
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-boxesFebruary 27, 2023 at 10:30 PM in reply to: Search Result view not activated, Archive view instead #40750Peter
ModeratorHello,
If you deactivate that plugin, does the view template work properly? You can use the standard search widget of WordPress to check this issue.
February 27, 2023 at 8:52 PM in reply to: Displaying/hiding custom fields based on taxonomy value #40749Peter
ModeratorHello,
Please export the field group to the JSON file and share it with me or share the PHP code generated, I will check the issue on my local site.
Read more on the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-codePeter
ModeratorHello,
The field type
key_valueitself works like a cloneable field and it does not need to enable'clone' => trueso the settingmax_clonewill not work in this case.I will inform the development team to consider adding a setting to set the max added items.
February 27, 2023 at 6:50 PM in reply to: Selecting many relationships taxes forever (more efficient way)?? #40745Peter
ModeratorHello,
Thank you for your feedback.
Currently, MB relationship select box only supports selecting one object per selection. You can add more objects and it also supports searching for objects with the default field type select_advanced.
-
AuthorPosts