Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Please update the newest version of the MB Builder plugin v3.3.4 or MB AIO plugin v1.11.16. We've removed the placeholder text of the field
selectand you can translate the placeholder text of the fieldselect_advancedwith the Builder.You can add the placeholder for the field
selectby coding and following this documentation https://docs.metabox.io/fields/select/#settings.Long Nguyen
ModeratorHi,
Please update the plugin Meta Box to the newest version 5.3.2 and other extensions to fix this issue and get new features/options.
Long Nguyen
ModeratorHi,
Please see my screen record https://www.loom.com/share/014785bc0a514cf098901fd12c88082c.
I'm using the plugin MB Core 1.0.16 and Meta Box 5.3.2. Please try to add the meta box title and set the post type in the settings tab then save the field group again. On my local site, everything works as well.
Long Nguyen
ModeratorHi,
The extension MB Geolocation helps you enter an address then it will autosuggest a complete address and fill all other fields. In your case, I think you need to calculate the distance first, find the house (post) that has the shortest distance then show it on the map.
Links below will help you to achieve your goal.
https://stackoverflow.com/questions/29003118/get-driving-distance-between-two-points-using-google-maps-api
https://metabox.io/display-all-listings-on-a-map/Long Nguyen
ModeratorHi,
Thank you for pointing this out.
Could you please update the newest version of the MB Core plugin to v1.0.16 then check the issue again?
Then edit all field groups and make sure that option Show For is set to one of the list objects Posts, Taxonomies, Settings Page, Comments. See my screenshot https://share.getcloudapp.com/eDu1JzXE.
If it still happens, please take some screenshots of this issue, I will take a closer look and give a quick response.
July 14, 2020 at 4:45 PM in reply to: ✅How can I create a custom post type and use Gutenberg to create/edit the content #20766Long Nguyen
ModeratorHi Hartsook,
When editing the post - all post types - the default editor is Block Editor (Gutenberg). Have you activated the plugin Classic Editor? This plugin also allows the user to switch the editor by going to Settings -> Writing. See my screenshot https://share.getcloudapp.com/qGuK8yLY.
Long Nguyen
ModeratorHi,
I think there are two ways to achieve your goal:
- Use the extension MB Settings Page, create some fields in a settings page, and get the field settings by using this code.
$field = rwmb_get_field_settings( $field_id, ['object_type' => 'setting'], $option_name );Follow this documentation for more information https://docs.metabox.io/extensions/mb-settings-page/.
- Just create a specific post and get the field settings from this post.
Hope that helps.
Long Nguyen
ModeratorHi Alex,
If you are using the helper function
rwmb_get_field_settings()outside the loop, you have to pass the argument$object_id(post ID) to this function.$field = rwmb_get_field_settings( 'country', '', 1234 );For more information, please follow this documentation https://docs.metabox.io/rwmb-get-field-settings/#arguments.
Long Nguyen
ModeratorHi,
Thank you for your efforts but we only support the latest version of extensions by installing via Composer or downloading via User Account page.
This topic might help you to update one package via Composer https://stackoverflow.com/questions/16739998/how-to-update-a-single-library-with-composer.
Long Nguyen
ModeratorHi Alex,
Did you pass the arguments to the function
rwmb_get_field_settings( $field_id, $args, $object_id )?Please share the code that you create the field and get the field settings. I will take a closer look and give a quick response.
Long Nguyen
ModeratorHi,
I've tested to install the extension MB Term Meta via Composer and it works as well. Maybe something goes wrong at that time, you can also re-install this extension with the sample composer code and follow this documentation https://docs.metabox.io/extensions/composer/#versions--updates.
{ "repositories":[ { "type": "composer", "url": "https://packages.metabox.io/license-key" } ], "require": { "meta-box/mb-term-meta": "dev-master" }, "extra": { "installer-paths": { "vendor/meta-box/{$name}/": ["type:wordpress-plugin"] } }, "autoload": { "files": [ "vendor/meta-box/mb-term-meta/mb-term-meta.php" ] } }Let me know how it goes.
Long Nguyen
ModeratorHi Mats,
Would you mind sharing with us what your needs are? Maybe we can help you use the Meta Box and extensions to complete the project.
Long Nguyen
ModeratorHi,
The code to show the image on the post works as well.
$images = rwmb_meta( 'author_image', array( 'limit' => 1 ) ); $image = reset( $images ); ?> <img src="<?php echo $image['url']; ?>">See more in my screen record https://www.loom.com/share/8f6d40a956524aca83c970fd169c6e5f. If you are using the field
image_uploadas a subfield of a group, please follow this documentation to get the field value https://docs.metabox.io/extensions/meta-box-group/#sub-field-values.Long Nguyen
ModeratorHi,
Thanks for your idea, I'm going to create a feature request for the developer team to research and add the field sortable to the Meta Box plugin.
Have a good day.
Long Nguyen
ModeratorHi Didou,
You can use the proxy
mbto run a PHP function which is created by you or supported by WordPress in View. Please follow this documentation for more information https://docs.metabox.io/extensions/mb-views/#running-php-functions. -
AuthorPosts