Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Please follow this topic to know how to rename the custom field in the database https://wordpress.stackexchange.com/questions/31178/how-to-rename-a-custom-field
November 15, 2021 at 10:17 AM in reply to: Is there a way to add more data to the dropdown list for relationships? #31922Long Nguyen
ModeratorHi,
Currently, the relationship dropdown only supports showing the post title. I will inform the development team to explore the possibility.
Long Nguyen
ModeratorHi,
Please follow this documentation to know how to use the function
get_option()
https://docs.metabox.io/extensions/mb-settings-page/#getting-field-valueLong Nguyen
ModeratorHi,
The helper function
rwmb_set_meta()is not working with the settings page. I've informed the development team to fix this issue in the next update. For now, you can use the WordPress functionupdate_option()to update the field value on the settings page.Long Nguyen
ModeratorHi Sash,
In the admin area, to use the helper functions
rwmb_get_valueorrwmb_meta, you need to hook your function to actioninitwith the priority later than 20 or use the WordPress function get_option() to get the field value of the settings page.Long Nguyen
ModeratorHi,
If you cancel the subscription in a while but your license is not expired, the renewal price will be maintained for the old plan. If the license is expired, you have to purchase a new license with the new plan.
November 13, 2021 at 10:23 AM in reply to: How do I create a user to user relationship based on role? #31897Long Nguyen
ModeratorHi Omni,
You can use the extension MB Include Exclude to show the relationship field on the specific role. For example:
add_action( 'mb_relationships_init', function () { MB_Relationships_API::register( array( 'id' => 'stud_to_teach', 'from' => array( 'object_type' => 'user', 'meta_box' => array( 'title' => 'Select Teacher', 'include' => array( 'user_role' => 'student' ) ), 'field' => array( 'query_args' => array( 'role__in' => 'student' ), ) ), 'to' => array( 'object_type' => 'user', 'meta_box' => array( 'title' => 'Select Student', 'include' => array( 'user_role' => 'teacher' ) ), 'field' => array( 'query_args' => array( 'role__in' => 'teacher' ), ) ), ) ); } );In the user profile of the
studentrole, there is only a relationship field to selectteacherand vice versa.
Please read more on the documentation
https://docs.metabox.io/extensions/meta-box-include-exclude/#settings
https://docs.metabox.io/extensions/mb-relationships/#using-codeNovember 13, 2021 at 9:19 AM in reply to: Shortcodes are not taken. They appear as plain text. #31896Long Nguyen
ModeratorHi,
Do you mean the code to allow users to change the post status on the frontend? You can put it in the file functions.php under the theme/child theme folder, like registering the meta box by code https://docs.metabox.io/creating-meta-boxes/#using-code
Long Nguyen
ModeratorHi,
Simply you can deactivate the plugin Meta Box to check the custom fields created by the theme.
Long Nguyen
ModeratorHi Jim,
If you want to use the View to render the content of the taxonomy page, you need to use the Type: Archive, Location: Taxonomy Archive. Screenshot https://share.getcloudapp.com/5zu9ro2D
Long Nguyen
ModeratorHi Kirb,
It might be a temporary issue. Can you please re-check the images on our documentation?
November 11, 2021 at 9:51 PM in reply to: ✅Slow performing queries called by metabox\c\api::create() #31878Long Nguyen
ModeratorHi,
Thank you for your feedback.
I've escalated this issue to the development team to fix it in future updates.
Long Nguyen
ModeratorHi,
Please notice that enqueue_block_editor_assets is an action hook. See this example to know how to enqueue script files in your theme.
https://gist.github.com/zgordon/2c8506a1dd1d6068b84fb8f88907bdb9November 11, 2021 at 11:31 AM in reply to: Shortcodes are not taken. They appear as plain text. #31867Long Nguyen
ModeratorHi Roma,
- They mention a shortcode so that the password can be edited but the shortcode is not visible.
- But this Shortcode shows double the fields that will be for content and title
- The frontend submission and dashboard do not allow the users to update post status on the frontend. If you want to allow the users to update post status by using a custom field and custom code, please follow this topic
https://support.metabox.io/topic/controlling-post-status-in-front-end-dashboard/
Please find the shortcode to update the password on the extension's documentation https://docs.metabox.io/extensions/mb-user-profile/#edit-user-password
[mb_user_profile_info id="rwmb-user-info"]As you can see on this documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes
the default post fields are supportedtitle,content,excerpt,date,thumbnail. So you do not need to create the same custom fields like that.Long Nguyen
ModeratorHi Nicole,
I think it is possible. But you have to use a lot of code to update the custom field value to each WordPress setting after saving the settings page. I do not see the benefit when doing that. Instead, you can create your own settings page with custom fields and get that field value when you build the page/post on your site.
-
AuthorPosts