Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi there,
Meta Box has not supported the field type user roles yet. But you can create a custom field type to show a list of roles with a few lines of code.
Follow these links to get more details:
- Custom field type: https://docs.metabox.io/custom-field-type/
- Get roles: https://stackoverflow.com/questions/13162330/wordpress-list-user-roles
- Sample custom select field: https://support.metabox.io/topic/select-a-gravity-form-to-assign-to-a-cpt/Long Nguyen
ModeratorHi,
The custom table is not associated with the table wp_posts as the wp_postmeta, see more in this documentation https://codex.wordpress.org/Database_Description.
Using the custom table helps us to get the post ID base on the field value. We also note on this case https://docs.metabox.io/extensions/mb-custom-table/#query-posts-with-wp_query.
At this time, the extension does not support to use
meta_querywith the custom table. I will discuss this with the developer team and inform you later if there are some ideas.Long Nguyen
ModeratorRelated topic https://support.metabox.io/topic/https-url-of-single-image-original-size/.
Mark as Resolved.
Long Nguyen
ModeratorDecember 1, 2020 at 9:39 PM in reply to: ✅Bug (maybe) MB Custom Table with Select Advanced field #23388Long Nguyen
ModeratorThis issue has been fixed in the new version of MB Custom Table v1.1.11. I'm going to mark this topic as Resolved.
Long Nguyen
ModeratorHi,
No, we do not need to update extensions manually. We will aggregate some new releases of other extensions and integrate them into the new version Meta Box AIO. Please wait for a few days 🙂
Long Nguyen
ModeratorHi,
To customize the shop page or other WooCommerce pages by using Meta Box, you should use WooCommerce hooks and follow the sample guide to know how to add custom fields for a single product page and show on the front end https://metabox.io/add-custom-fields-for-woocommerce/.
Or use some plugins customizing WooCommerce by following this guide: https://quadlayers.com/customize-woocommerce-shop-page/.
Long Nguyen
ModeratorHi Munish,
Thank you for contacting us.
This is the Meta Box support forum, where we help all users use the Meta Box plugin and extensions to create WordPress custom fields and meta boxes (backend) and show the data on the front end fast and easily.
If this is the first time you use the Meta Box plugin, please follow our starting-guide https://docs.metabox.io/.
If you wonder about how to create the page by Oxygen Builder, please follow its documentation https://oxygenbuilder.com/documentation/getting-started/getting-started-tutorial/.
December 1, 2020 at 8:34 AM in reply to: ✅Fatal Error in class-mb-custom-table-loader.php on line 58 #23129Long Nguyen
ModeratorHi Daniel,
Please share the code that created the custom fields, Blocks, and steps of actions. I will try to reproduce the issue on my end.
I can see some actions follow the screenshot:
- Create custom fields and save the value in the custom table.
- Create some Blocks by MB Blocks.
- Delete the post.Long Nguyen
ModeratorHi Michael,
Please try to switch to the default theme of WordPress (Twenty Twenty), deactivate all plugins except Meta Box and MB extensions, then activate plugins one by one. This procedure will help us to find the plugin/theme conflict with Meta Box.
Let me know how it goes.
Long Nguyen
ModeratorHi,
Thank you for your effort. I will send all information to the developer team to cover this case.
November 30, 2020 at 9:57 AM in reply to: ✅Archive for 1 custom taxonomy results in 'page not found' #23109Long Nguyen
ModeratorHi Eddy,
Please go to Admin Dashboard > Settings > Permalinks > Save the common settings (Post Name) again.
If it does not work, please share some screenshots of the issue. I will check it out.
You can also follow this documentation to know how to create the taxonomy template https://developer.wordpress.org/themes/template-files-section/taxonomy-templates/.
Long Nguyen
ModeratorHi Martin,
Please follow this documentation https://docs.metabox.io/extensions/mb-custom-table/#query-posts-with-wp_query.
global $wpdb; $ids = $wpdb->get_col( "SELECT ID FROM your_table WHERE field1 = 'value1' OR field2 = 'value2'" );The custom table helps you track the data by post ID for each row and create the WordPress query to get full information base on post ID.
You can still keep the data in the custom table and query to the database to get the data even delete the post.
Long Nguyen
ModeratorHi Martin,
Yes, you can use action hooks
rwmb_frontend_before_save_postorrwmb_frontend_after_save_postto trigger a function to update some value to the database.It accepts 1 parameter
$object: the instance of the \MBFS\Post class, which handles the submission so you can access 4 properties:$post_type$post_id$fields$configSee more in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#post-actions.
Long Nguyen
ModeratorHi,
- If the content is in the post type Square and you want to show on a page, you have to pass the post ID as the third-parameter of the helper function. And the image URL which is used in URL Image data has to be returned, not use echo.
See my screenshots:
- Snippet: https://share.getcloudapp.com/9Zu0P0Qy
- Square Test2 post ID: https://share.getcloudapp.com/P8umgmgw
- Oxygen repeater and image: https://share.getcloudapp.com/P8umgm6KFor more information, please follow this documentation https://docs.metabox.io/rwmb-meta/#arguments.
-
AuthorPosts