Forum Replies Created
-
AuthorPosts
-
February 7, 2023 at 10:26 PM in reply to: ✅Placing a custom field into woocommerce product inventory tab #40433
Peter
ModeratorHello,
Currently, Meta Box does not support adding custom fields to the product data section of WooCommerce. You can try to use a third-party plugin to do that and also output the option on the frontend.
February 7, 2023 at 10:07 PM in reply to: Gutenberg Block with Relation does not work anymore #40432Peter
ModeratorHello,
If you view the block in the admin area, please remove this line in your code
$post_id = get_the_ID();If you view the block in the frontend, you can keep it.
If it still does not work, please share your site credentials (should be a staging site so I can make some tests there) to the contact form https://metabox.io/contact/, and let me know where I can find your code. I will take a closer look.
Peter
ModeratorHello,
If you are using the custom table, each custom field is a column and all field values of a post are saved to one row. So you can try to use an SQL query to get all field values associated with a post based on the provided post ID.
For example:
"SELECT * FROM your_table WHERE ID = { $post_id }"Please refer to the documentation https://docs.metabox.io/extensions/mb-custom-table/#query-posts-with-wp_query
Peter
ModeratorHello,
I think it is possible with Meta Box, but you will need to create a lot of code to do this job. Meta Box works like a framework and you can build your site in many ways with it but there are no prebuilt options to support every job. Instead of creating the code from scratch, you can consider using a third-party member or management plugin.
Peter
ModeratorDuplicate topic https://support.metabox.io/topic/is-this-possible-in-metabox/?swcfpc=1
I mark this one as Resolved.Peter
ModeratorHello Mats,
If you have a license issue, please submit a ticket here https://metabox.io/contact/
Our support team will help you to check this.February 6, 2023 at 11:09 PM in reply to: ✅Google Map Field attached to User Profile not updating #40414Peter
ModeratorHello Suzanne,
The Google map field saves the location in the following format
latitude,longitude,zoom(you can also check it in the database). You can contact WS Form to ask them which data format is processed after submitting the form. Then you can use the function rwmb_set_meta() or update_user_meta() to set/update the field value with the correct format.Please read more on the documentation
https://docs.metabox.io/fields/map/#data
https://docs.metabox.io/functions/rwmb-set-meta/
https://developer.wordpress.org/reference/functions/update_user_meta/Peter
ModeratorHello,
Yes, please also check this documentation https://docs.wpslimseo.com/slim-seo/facebook-open-graph-tags/
if you have any questions relate to Slim SEO, please submit a ticket here https://wpslimseo.com/my-account/support/
Peter
ModeratorHello there,
Please use the option save_format to display another date format on the frontend and read more on the documentation https://docs.metabox.io/fields/date/#date-format
Screenshot https://monosnap.com/file/Qaed4WQQXjnEw07pRurO7Gl5oxL7ouLet me know how it goes.
February 6, 2023 at 10:36 PM in reply to: Custom field type user not show in add new user /wp-admin/user-new.php #40410Peter
ModeratorHello there,
The user meta fields do not work on the add new user page, it works on the profile page
wp-admin/profile.php.Peter
ModeratorHello,
I think it is possible with Meta Box, but you will need to create a lot of code to do this job. Meta Box works like a framework and you can build your site in many ways with it but there are no prebuilt options to support every job. Instead of creating the code from scratch, you can consider using a third-party member plugin.
February 4, 2023 at 12:12 PM in reply to: Gutenberg Block with Relation does not work anymore #40396Peter
ModeratorHello Marius,
In the template file or callback function, please use the variable
$post_idto get the current post ID where you use the custom block. Please read more on the documentation https://docs.metabox.io/extensions/mb-blocks/#render_callbackFor example:
'relationship' => [ 'id' => 'kontakte-auf-seiten', 'to' => $post_id, // You can pass object ID or full object ],Then pass the page ID variable to the third parameter of the helper function
rwmb_meta( 'fax', '', $page->ID )Let me know how it goes.
Peter
ModeratorHello,
To display the selected value you can use the attribute
selectedfor the select option, please read more here https://www.w3schools.com/tags/att_option_selected.aspand to get the saved field value, please use the variable
$meta, you can see the sample code in the documentation to know how it works https://docs.metabox.io/creating-new-field-types/#adding-a-method-to-output-the-fieldFebruary 4, 2023 at 11:44 AM in reply to: MB Views PHP error in PHP 8 / maybe compatibility issue with JetEngine? #40394Peter
ModeratorHello Marius,
As you can read in the notification message, the error comes from the compatibility code of the JetEngine plugin so you can try to contact their support to ask for help with this issue.
Thanks for your understanding and patience.
Peter
ModeratorHello,
Thanks for your feedback.
I do not see that issue on my demo site. Can you please test this on a fresh install of WordPress and Meta Box again? If it still happens, please share that site credentials to the contact form https://metabox.io/contact/, I will take a look.
-
AuthorPosts