Forum Replies Created
-
AuthorPosts
-
August 11, 2022 at 10:31 AM in reply to: ✅How to access frontend submission form directly from admin menu #37446
Long Nguyen
ModeratorHi,
You can follow this topic on WPSE to use the code to redirect users to the frontend submission page when clicking on Add new button.
https://wordpress.stackexchange.com/questions/271288/change-link-for-add-new-buttons-on-custom-post-typeAugust 11, 2022 at 10:23 AM in reply to: Check if CPT Field from MB Relationships has custom taxonomy term #37445Long Nguyen
ModeratorHi,
Can you please let me know which field type is? Is that a
taxonomyfield? You can just create an if statement to check and display the field value. I don't know if the Bricks builder supports this case but you can use the code to do that. Please read more on the documentation https://docs.metabox.io/fields/taxonomy/#dataLong Nguyen
ModeratorGreat.
Let me know if you have any questions.Long Nguyen
ModeratorHi,
1. I don't know exactly what your case is, but if you use the custom table to save custom field value, you need to use the supported functions of Meta Box to manipulate data easily. Or you have to use the $wpdb class to create the SQL query to get/update the field value.
And the custom table might not work with a third-party plugin like AdminColumns Pro. You can use our plugin MB Admin Columns to display the custom field in the table list.2. You can use the shortcode attribute
post_typeof the frontend form to set the post type of the submitted posts and approve the post later.
If you want to add something to the form or add some function before/after processing the post, please follow this documentation to know the supported hooks https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1Long Nguyen
ModeratorHi,
You need to add the pair key and value in an array like this
add_action( 'save_post', function( $post_id ) { $data2 = [ 'tracking_history_data' => [ 'testKey' => 'testvalue', 'testKey2' => 'testvalue2' ], ]; \MetaBox\CustomTable\API::add( $post_id, "aaypmz_recoveroo_tracking_history", $data2 ); } );If the field
tracking_history_dataalready has a value, you need to change the functionaddtoupdate.Long Nguyen
ModeratorHi,
I'm going to inform the developer team to consider adding it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi Amy,
What I mean is, obviously every entry is stored in its custom table, but is it also “registered” or stored in any wp table like postmeta?
The field value is only saved to the custom table instead of the table postmeta.
Is there a guide on building your own frontend forms?
There is no guide to create a custom frontend form, you will need to create a lot of custom code to process the data after submitting a form. And MB Frontend Form also supports saving the field value to the custom table, you can use two extensions to achieve the goal.
And if you want to query posts by custom fields in the custom table, you need to make an extra query to get the post IDs first. Please read more on the documentation https://docs.metabox.io/extensions/mb-custom-table/#query-posts-with-wp_query
Long Nguyen
ModeratorHi,
Thanks for your feedback.
This issue has been fixed in a new commit and it will be included in the next update of the plugin. For now, you can use the older version or add a map field to make it works.
Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in future updates.
Long Nguyen
ModeratorHi,
There is no option to remove the HTML tags in the group title which takes from the field value. I will inform the development team to consider supporting this case in future updates.
Long Nguyen
ModeratorHi,
Please share your site credentials and details via this contact form https://metabox.io/contact/
I will take a closer look.Long Nguyen
ModeratorResolve the issue by re-adding the field ID prefix.
Long Nguyen
ModeratorHi,
To hide a tab with conditional logic, you need to use some custom PHP code. Please read more on the documentation
https://docs.metabox.io/extensions/meta-box-conditional-logic/#using-outside-meta-boxes
https://docs.metabox.io/hide-tabs-with-conditional-logic/Long Nguyen
ModeratorHi,
Currently, Meta Box does not support adding field value to another field on input value like that. You can try to use the action hook
rwmb_after_save_fieldto update a field value after saving the post.
Read more on the documentation https://docs.metabox.io/actions/rwmb-after-save-field/Long Nguyen
ModeratorHi Yasmine,
The form (maybe the contact form) is created by WS Form so in this case, I recommend contacting their support to ask for more details. It is beyond the scope support of Meta Box.
-
AuthorPosts