Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
I'm going to check this issue and inform you later.
Thank you.
Long Nguyen
ModeratorHi,
You can try to use the action hook mb_settings_page_load to add a function get data from the option name and update to your custom table.
The data of the settings page still saved in the table (wp_)options as default.
Long Nguyen
ModeratorHi,
Shortcode is a shortcut code that helps you run the helper function
rwmb_metawithout touching the code, it uses to display the field value for a specific case/post.If you want to show the field value of all posts (portfolios) in a shortcode, please create a custom shortcode to show all portfolios and its custom field. Follow this documentation https://codex.wordpress.org/Shortcode_API.
Long Nguyen
ModeratorHi,
The custom table has not supported to save the data of the settings page yet. It helps you to save data to a custom table instead of the default post/user/term meta table, maps fields with an entry (post, term, or user) via its ID. In the case of the settings page, there’s no such ID, just the option name.
December 23, 2020 at 11:06 AM in reply to: ✅Split frontform in 2 with a check is title already exists #23713Long Nguyen
ModeratorHi,
The extension MB Frontend Submission does not support splitting the form into more parts. I think you can use the Remote Validation to validate the title if it exists by a custom function.
The default title should be replaced by the custom field https://docs.metabox.io/extensions/mb-frontend-submission/#reorder-post-fields.
Refer to this topic: https://support.metabox.io/topic/remote-validation-example/.
Long Nguyen
ModeratorHi Steve,
Let me explain more about your case.
- You have 10 posts (portfolio) that have the custom field single image.
- You create a grid by the builder and want to add the shortcode to the grid.
- You create a page (Drink) by the builder and include the grid.
So in the grid, you have to insert 10 shortcodes with the
object_id(portfolio ID) to show each portfolio such as:[rwmb_meta id="single_image" object_id="1"] [rwmb_meta id="single_image" object_id="3"] [rwmb_meta id="single_image" object_id="12"]If not insert the
object_idthe shortcode will take the ID of the page (Drink) to pass to the shortcode and show the field value but the page does not have the field value.Get more details in the documentation https://docs.metabox.io/shortcode/.
object_id The object ID. Optional. If not defined, then the current object ID is usedDecember 23, 2020 at 9:30 AM in reply to: ✅Email Notification for custom field update (change) #23708Long Nguyen
ModeratorHi Toni,
WordPress fires an action hook when a meta is updated updated_{$meta_type}_meta. You can create a function and hook to the action to send an email when a meta updated.
Get more details on this topic https://wordpress.stackexchange.com/questions/264096/generate-email-on-meta-value-update.
Long Nguyen
ModeratorHi Becky,
This article would help you to create the My Account page for the logged-in user with the shortcode
[mb_user_profile_info]https://metabox.io/p1-add-guest-author-in-wordpress/.You can also create a logout button with the function wp_logout_url(). See more in the documentation https://developer.wordpress.org/reference/functions/wp_logout_url/.
Long Nguyen
ModeratorHi,
I also receive your message via the ticket system so I will reply here and close the ticket.
If you are building a grid template and want to include the shortcode to show the custom field of a post, you have to pass the fixed post ID as the
object_idvalue.[rwmb_meta id="field_id" object_id="15"]Long Nguyen
ModeratorHi,
Please try to remove the
$prefixvariable of the field ID then check to save data again.array ( 'id' => 'description', 'type' => 'textarea', 'name' => esc_html__( 'Description', 'tf-meta-box-request-info' ), 'tooltip' => esc_html__( 'A description of the request.', 'tf-meta-box-request-info' ), ),Long Nguyen
ModeratorHi,
In the View, we can click to the tab Insert Field > Tab User > User dropdown: Post Author > Then click the User options below: User ID, first name ...
Or use the
mb.proxy to connect all supported template tags of WordPress and your custom function, see more in the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions.Long Nguyen
ModeratorHi,
I’m going to create a feature request for the developer team to support saving custom fields as the post meta in the block. Thank you.
Long Nguyen
ModeratorHi Jacob,
-
Please share the code that creates the block, I will check it on my end.
-
The extension MB Blocks has not supported meta for block yet. Instead, it saves the JSON string in the block content as introduce in the documentation https://docs.metabox.io/extensions/mb-blocks/#block-data.
December 21, 2020 at 4:03 PM in reply to: ✅How to create a form with just a few fields of a Fields Group, without posting #23670Long Nguyen
ModeratorHi,
The form of MB Frontend Submission does not support to pass the value to other forms. And the first form with the date field and Book Now button does not save the data (post and custom field) so it very difficult to set the param to URL by field value.
I think you can get the field value by JavaScript and set it to the redirect URL. This topic from StackOverFlow might help you to do https://stackoverflow.com/questions/42376287/how-to-add-or-replace-a-query-parameter-in-a-url-using-javascript-jquery/42376792.
Long Nguyen
ModeratorHi,
We've had the extension MB Rest API to help users manage the custom fields and custom data via REST API in WordPress https://metabox.io/plugins/mb-rest-api/. Have you tried this?
-
AuthorPosts