Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
If the view template is assigned to the Publication post type, and you want to display a list of 3d-flip-book posts, you can use the direction
from.{% set args = { post_type: '3d-flip-book', relationship: { id: 'publicationtoflip', from: post.ID } }Peter
ModeratorHello,
Just the first block of code for the "Green Care Form" page as I mentioned above.
add_filter( 'rwmb_frontend_post_title', function( $field ) { if ( is_page( "Green Care Form" ) ) { $field['required'] = true; $field['name'] = 'Name of Green Care organisation'; } return $field; // here } );Peter
ModeratorHello,
I see the code snippet in the topic https://support.metabox.io/topic/user-dashboard-displaying-the-right-form/?swcfpc=1
As the suggestion, please move the
returnstatement outside of the conditionifstatement and check the title again.add_filter( 'rwmb_frontend_post_title', function( $field ) { if ( is_page( "Green Care Form" ) ) { $field['required'] = true; $field['name'] = 'Name of Green Care organisation'; } return $field; } );March 2, 2023 at 6:48 PM in reply to: user button language displayed as site language NOT as user set language WPML #40791Peter
ModeratorHello,
I've tested this issue on my demo site without WPML.
- site language: Spanish
- user language: English
the "add media" button displays in the English language. Can you please recheck this on your site?Peter
ModeratorHello,
I've imported the field group to my local site, assigned it to a post type and the field group displays as well when editing the post. Can you please ask other admins if it is moved to the sidebar?
If not, please share your site credentials to this contact form https://metabox.io/contact/, I will take a closer look.
March 2, 2023 at 5:36 PM in reply to: Missing posts in Custom Post Type after updating custom fields #40789Peter
ModeratorHello,
It is mostly related to the post type slug. You can access the database, table
wp_postscheck the columnpost_typeif it matches the slug in Meta Box > Post Types > Edit the post type.Peter
ModeratorHello,
You have the Agency Ultimate Bundle license so you just need to install and activate one plugin Meta Box AIO to use all premium extensions. Please read more here https://docs.metabox.io/extensions/meta-box-aio/
Please share some screenshots in Meta Box > License and when you add a custom field in the field group.
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-functions -
AuthorPosts