Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
You can use the function get_post_meta() via the proxy in View to get a field value.
Get more details on the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions
Long Nguyen
ModeratorHi Aaron,
Thank you for your feedback.
I've tried to reproduce the issue on my end but no luck. Can you please deactivate the plugin Contact Form 7 to see if the error message disappears?
And please make sure that your view has a title.
Long Nguyen
ModeratorHi Marco,
To translate the custom fields in the settings page, please create the file
wpml-config.xmlin your theme/child theme folder, then add this code to that file<wpml-config> <admin-texts> <key name='option_name'> <key name='field_id' /> </key> </admin-texts> </wpml-config>Translate the field value in WPML > String translation, show the field value by using the WordPress function get_option()
<?php $options = get_option( 'option_name' ); echo $options['field_id']; ?>See my screen record https://share.getcloudapp.com/QwuA02PY
Long Nguyen
ModeratorHi Danny,
You need to pass two attributes
object_typeandobject_id(user ID) to the shortcode.[rwmb_meta id="color" object_id="1" object_type="user"]Get more details here https://docs.metabox.io/shortcode/#examples
Long Nguyen
ModeratorHi,
A Settings page does not work when you add a sub-settings page. Please select another top menu to show under it as a sub-menu, such as Posts, Pages, Tools ...
Long Nguyen
ModeratorHi,
What is the code that you create the custom table to save data? Please share it.
Long Nguyen
ModeratorHi Laurent,
I do not have an easier way to do your case. Because the time and lyric is a pair and you will have more pairs for each song.
The field Custom HTML does not help you to save data. It just shows a notice or warning for the field. Even you use the custom HTML, this way will be back to my code and use the loop to show the pair.
Long Nguyen
ModeratorHi,
If you want to load the thumbnail based on the screen width, for example, on mobile load
thumbnail, on tablet loadmedium, on desktop loadlarge. You can use the attributesrcsetof the<img>tag. Get more details here https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_imagesLong Nguyen
ModeratorLet me know if you have any questions.
Long Nguyen
ModeratorHi,
Thank you for your feedback.
I've escalated this case to the development team to improve the code to prevent execute the function create table on load every time.
Long Nguyen
ModeratorHi,
There is no prebuilt option to populate the URL from the post field automatically. You can add this custom code to the file functions.php in the child theme folder or use Code Snippets to apply it.
add_action( 'rwmb_FieldPostID_after_save_field', function( $null, $field, $new, $old, $object_id ) { $post_url = get_the_permalink( $new ); update_post_meta( $object_id, 'FieldPostURL', $post_url ); }, 20, 5 );The code helps you to update the field URL value from the field post value after clicking Publish/Update the current post.
Remember to replace the
FieldPostID,FieldPostURLwith your field post and URL ID. And register or place the field URL before the field post. Screen record https://share.getcloudapp.com/ApuzA81KJune 10, 2021 at 9:20 PM in reply to: Add wp.hooks.addFilter support for registerBlockType in metabox #28836Long Nguyen
ModeratorHi,
Thank you for your feedback.
I will inform the development team to consider supporting a filter hook when registering the block.
Long Nguyen
ModeratorHi,
What is the Type and Location of your View? On the archive page or single post page? Please share some screenshots when editing the View.
Long Nguyen
ModeratorHi,
The integration is on our roadmap and we are working on it. You can see here https://trello.com/b/OCOz26GM/meta-boxs-public-roadmap
It will be released as soon as possible. Thank you.
June 10, 2021 at 8:36 PM in reply to: ✅Image custom fields no showing in Elementor image widget. #28831Long Nguyen
ModeratorHi Ghislain,
The setting
multipleof the field type image is always set totruethat means the field value returns an array so it does not work with the widget Image of Elementor.You can use the field single_image if you want to show in the widget Image.
Regarding the cloneable group, it is more complicated than the normal field. There is no way to output the subfield value in the builder, you need to create a shortcode to show the subfield value. Get more details on the documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders
-
AuthorPosts