Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi John,
Please follow this topic to use the setting
query_argsto query posts by status in the relationship box https://support.metabox.io/topic/relationships-on-post_status-other-than-published/function your_prefix_function_name() { MB_Relationships_API::register( [ 'id' => 'post-to-page', 'from' => [ 'object_type' => 'post', 'post_type' => 'post', ], 'to' => [ 'object_type' => 'post', 'post_type' => 'page', 'field' => [ 'query_args' => [ 'post_status' => array( 'publish', 'draft' ) ], ], ], ] ); }Long Nguyen
ModeratorHi,
Thanks for your feedback.
I think that a backup field should not be registered as a subfield in a group and I will create a note in the documentation for this case. But I will also inform the development team to explore the possibility.
Long Nguyen
ModeratorHi Ole,
Here is an example to customize the frontend submit button
add_filter( 'rwmb_frontend_submit_button', function( $submit_button, $post_id) { $edit = 'true'; // or false, read the edit attribute here https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes $submit_button = '<button class="rwmb-button my-class" data-edit="' . $edit . '" name="rwmb_submit" value="1">Submit button text</button>'; return $submit_button; }, 20, 2 );Long Nguyen
ModeratorHi,
Thanks for your suggestion.
I will inform the development team to check the integration and fix it in the next update.
June 16, 2022 at 12:21 PM in reply to: ✅How to create database on dashboard and cross-check from front end? #36522Long Nguyen
ModeratorHi,
It is beyond the scope of support of Meta Box. It does not have any form to check the data on the frontend like that. If you want to create the custom code to do, please submit a service request here https://metabox.io/contact/, our developer will help you.
Long Nguyen
ModeratorHi,
Our development team is going to check the issue. I will get back to you later.
June 16, 2022 at 12:16 PM in reply to: can't retrieve settings page, group field single image data/value/image url #36520Long Nguyen
ModeratorHi,
You need to get the group value from the settings page first, and access the subfield later.
$group = rwmb_meta( 'home_page_top_ad_group', ['object_type' => 'setting'], 'ev_advertisements' ); $url = $group['home_page_top_ad_url'];Long Nguyen
ModeratorHi,
It looks like the standard feature of Beaver to return a standard date (Unix epoch) when there is empty data. If you use the helper shortcode
[rwmb_meta id="event_date"]without the builder, it does not show the standard date like that.Long Nguyen
ModeratorHi Ole,
It's beyond the scope support of Meta Box, you can follow this topic to know how to use JS code to reload the iframe content
https://stackoverflow.com/questions/86428/what-s-the-best-way-to-reload-refresh-an-iframe
Or create a service request here https://metabox.io/contact/, our development team will help you to implement the code for an extra fee.Long Nguyen
ModeratorHi,
I've issued you a full refund.
Let me know if you have any questions.June 15, 2022 at 9:27 PM in reply to: The post will still be saved even when remote validation failed #36508Long Nguyen
ModeratorHi Yi,
Are you using the Block editor? The remote validation only works with the Classic editor, refer to this topic https://support.metabox.io/topic/remote-validation-example/#post-22957
Long Nguyen
ModeratorHi,
It is not possible to show the custom field key and value outside key
meta_box. If you are familiar with coding, you can create your own rest route to use.
Refer to this topic https://stackoverflow.com/questions/43986513/how-do-you-add-custom-fields-defined-in-posts-to-the-rest-api-responses-in-wordpLong Nguyen
ModeratorHi,
Can you please share a screen record of this issue? Did you try to add the shortcode in the post content (without any page builder)?
Long Nguyen
ModeratorHi,
Thanks for your feedback.
The script files of MB Blocks only load on the post editing page. I will inform the development team to support it on the widget editing page.
Long Nguyen
ModeratorDone.
Let me know if you have any questions. -
AuthorPosts