Forum Replies Created
-
AuthorPosts
-
October 17, 2022 at 10:46 PM in reply to: Unable to display a custom field on Woocommerce Product page #38712
Long Nguyen
ModeratorHi,
Yes, you can use the extension MB Custom Table to save field value in a custom table, not save value to the standard table of WordPress (wp_postmeta). In the default table
wp_postmeta, one post can have, for example, 20 custom fields associated, which means there are 20 rows multiple with the number of posts on your site.Using the custom table, one post can have only one row. The custom fields are columns and save value to the cell as you can see on the documentation https://docs.metabox.io/extensions/mb-custom-table/
And read more the example here https://metabox.io/plugins/mb-custom-table
Long Nguyen
ModeratorHi,
It's the field
taxonomy, when you create the custom fields by the builder, not creating the custom taxonomy like your screenshots. Please read more on the documentation
https://docs.metabox.io/fields/taxonomy/
https://docs.metabox.io/extensions/meta-box-builder/Long Nguyen
ModeratorGreat.
Let me know if you have any questions.Long Nguyen
ModeratorHi,
I don't see any issue after importing the field group to my local site, here is the screen record vhttps://monosnap.com/file/99k5WYnENnSLZOd1G4AKKAwANSE7q8
Can you please delete two field groups on your site and import one then check this issue again?
Long Nguyen
ModeratorHi,
If you are using the Builder, please check these screenshots to enable the filter for taxonomy in the table list.
https://monosnap.com/file/2ld3o0jhgrfGtqQ1I1Cc2esyvi87Zo
https://monosnap.com/file/hdwspovODyRd7j30hBLizg6Rljm4PFLong Nguyen
ModeratorHi Ronald,
Can you please create a staging site and share the site credentials via this contact form?
https://metabox.io/contact/I will try to use this plugin to migrate data on my end and see if there is an error on your site.
October 16, 2022 at 9:36 PM in reply to: Unable to display a custom field on Woocommerce Product page #38687Long Nguyen
ModeratorHi,
You can find the supported hooks on the product page here https://www.businessbloomer.com/woocommerce-visual-hook-guide-single-product-page/
or contact WooCommerce support to ask for a hook to display the field value on the product page.Long Nguyen
ModeratorHi,
It looks like there is an issue with your custom code, not with the helper function
rwmb_meta(). If you want to do a customization job with an extra fee, please contact us via this form https://metabox.io/contact/, our plugin will help you to do that.Long Nguyen
ModeratorHi jmcbade,
Can you please create a new topic with your issue? And please share some screenshots, steps that you are trying to do but do not succeed. I will help you to check the issue.
October 16, 2022 at 4:17 PM in reply to: Show Views template on mobile or desktop conditionally #38683Long Nguyen
ModeratorHi Rod,
If you are familiar with coding and using Twig, you can follow this topic to use a Twig bundle to check the screen size https://stackoverflow.com/questions/39095492/twig-how-to-modify-template-based-on-screen-size
https://docs.metabox.io/extensions/mb-views/#external-template-filesBut I recommend using JavaScript (jQuery) instead of using the server-side language to check the browser (screen) size. It is more flexible and easy to use.
Long Nguyen
ModeratorHi,
It's not possible to use the builder to get all posts of a category (all terms). If you want to use the code, you have to get all terms of a category to pass to the
tax_query. Please refer to this topic https://stackoverflow.com/questions/47064244/how-to-display-a-list-of-posts-from-a-taxonomy-term-in-wordpressOctober 16, 2022 at 3:57 PM in reply to: Unable to display a custom field on Woocommerce Product page #38681Long Nguyen
ModeratorHi Wasim,
Meta Box extensions are not fully compatible with WooCommerce, it looks like they use some specific functions to call the template and their field value on the frontend. In this case, I recommend using WooCommerce hooks to display the field value. Please read more on this article https://metabox.io/add-custom-fields-for-woocommerce/
Long Nguyen
ModeratorHi,
Can you please share the code that creates the field
poston your site? Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-codeYou can also try to deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress (2022), or remove all other custom fields and recheck this issue.
Long Nguyen
ModeratorHi,
When creating the WP Query to get relation posts, you can get the number of posts by using the property
found_posts. Read more on the documentation https://developer.wordpress.org/reference/classes/wp_query/#properties
https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items// The Query $query = new WP_Query( $args ); $total = $query->found_posts;October 16, 2022 at 12:58 PM in reply to: ✅Site Migration - Custom field connections are gone #38677Long Nguyen
ModeratorHi,
Can you please export a field group to JSON file and share it here? I will help you to check the issue. Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
-
AuthorPosts