Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
I've tested on my site but cannot replicate this issue. Could you please take a screen record when building the tabs with MB Builder? And please make sure the
Tabfield must be added first or stay on the top of list fields, see this screenshot https://cl.ly/567689ec5a0eApril 21, 2020 at 9:17 AM in reply to: ✅Custom post types or taxonomies not showing in MB View #19172Long Nguyen
ModeratorHi,
Yeah, the code shows the terms of
symptoomand link to the archive page as well. Keep up the good work.Long Nguyen
ModeratorHi,
You can follow this guide to know how to extend a function/class or add anything from your plugin https://wpsmith.net/2015/extending-any-plugin-properly/
and this guide to know how to load the templates for the post type, taxonomy from the plugin
https://wordpress.stackexchange.com/questions/13378/add-custom-template-page-programmaticallyHope that helps.
April 20, 2020 at 2:54 PM in reply to: ✅Is it possible to disable the 'remove' option of a clonable group? #19160Long Nguyen
ModeratorHi there,
Unfortunately, the plugin does not support to remove the option
removein the clone group but you can use the CSS code to hide this button easily. Add this code to the file functions.php in the theme folder or use Code Snippets pluginadd_action( 'admin_footer', function() { ?> <style type="text/css"> .rwmb-group-clone .rwmb-group-remove, .rwmb-group-clone .remove-clone { display: none !important; } </style> <?php } );Let me know how it goes.
April 20, 2020 at 11:28 AM in reply to: ✅Creating a Custom Post Type with related ACF pages help #19154Long Nguyen
ModeratorHi David,
Thanks for contacting us. Hope you are well today.
The extension MB Views helps you to get Meta Box fields and build your templates (archive page for post types and taxonomies) on the front end fast and easily. Please follow the documentation to know how it works
https://docs.metabox.io/extensions/mb-views/If you want to create the file to show the archive page by coding, here are some guidelines to help you
https://toolset.com/documentation/customizing-sites-using-php/creating-taxonomy-term-archives/
https://www.smashingmagazine.com/2014/08/customizing-wordpress-archives-categories-terms-taxonomies/April 20, 2020 at 10:53 AM in reply to: ✅Not all dynamic fields are shown in Elementor Google Maps widget #19152Long Nguyen
ModeratorHi,
It seems the widget Google Map of Elementor only accepts the field
Textto display as the location (like when typing the address to the box Location).Don't worry about that, it still works well with Meta Box field
Text.April 20, 2020 at 10:23 AM in reply to: ✅// Metabox.io https://docs.metabox.io/displaying-fields/ blank page error #19149Long Nguyen
ModeratorHi Sam,
Could you please share full the code of the file
single.php? For example https://pastebin.com/91cF37zNAnd the function
rwmb_meta( $field_id );only works inside the loop. If you want to display the field value outside the loop, please use more arguments like thisrwmb_meta( $field_id, $args, $post_id );Long Nguyen
ModeratorHi,
Could you please deactivate all plugins except Meta Box then check the problem again?
I've tested again on my local site and the field
taxonomy_advancedworks as well asajaxenable. You can also open the Inspect Element tool of the browser and check the tabConsoleto get some information.Long Nguyen
ModeratorHi,
Thank you for contacting us. Hope you are well today.
I will check it out and let you know later. If you want to use the plain text, please try to use the field
textareainstead ofWYSIWYG.Long Nguyen
ModeratorHi,
Thank you for contacting us.
Because the post types for each site are not too many and Meta Box supports the field Post to list the posts by post type so I think this case you can create 2 fields
SelectandPostthen combine with Conditional Logic extension to limit the posts available.- Create a
Selectfield with a list of post type - Show the
Postfield with selected post type when selecting that post type.
Here is the sample code https://pastebin.com/hRBiRTiW
and a short screen record to do this case with MB Builder https://www.loom.com/share/b32c8474f2134198af30abd186e6348eLong Nguyen
ModeratorHi,
Thank you for contacting us. Hope you are well today.
Currently, the Meta Box plugin only supports to save the group in the database as a meta and the fields inside as the serialized string. But you can use the settings
'clone_as_multiple' => true,to save the group or other fields (not in a group) into many rows if it is cloneable.
For more information, please follow this guide
https://metabox.io/introducing-clone-as-multiple-feature/Hope that helps you something.
Long Nguyen
ModeratorHi there,
The stylesheet or script is registered and enqueued by the function
wp_enqueue_script()orwp_enqueue_style(). Meta Box plugin enqueues the scripts along with the fields/extensions, for example
https://github.com/wpmetabox/meta-box/blob/master/inc/fields/autocomplete.php#L16-L17
https://github.com/wpmetabox/meta-box/blob/master/inc/fields/background.php#L16
https://github.com/wpmetabox/meta-box/blob/master/inc/fields/image-advanced.php#L18You can use the function
wp_dequeue_script()andwp_dequeue_style()to dequeue the scripts with its registered name. But after do this action, the fields maybe not working properly, please careful.April 18, 2020 at 11:38 AM in reply to: ✅Custom post types or taxonomies not showing in MB View #19111Long Nguyen
ModeratorHi,
In View, you can use this sample code to list the terms of the taxonomy
<h2>Categories: </h2> {% set terms = mb.get_terms( 'category' ) %} {% for term in terms %} {{term.name}} <br> {% endfor %}use the function
get_terms()supported by WordPress via Proxymb.For more information, please follow the documentation
https://developer.wordpress.org/reference/functions/get_terms/April 17, 2020 at 6:57 PM in reply to: ✅Custom post types or taxonomies not showing in MB View #19098Long Nguyen
ModeratorHi,
I've made a short screen record about using Views shortcode and add to Elementor widget shortcode https://www.loom.com/share/9049c378c176415793dbc82168572b34
Remember don't add the Location in the View item because the location page will use a specific template (generated by this extension) and you cannot edit this page with Elementor any more.
Long Nguyen
ModeratorHi,
Only the extension MB Frontend Submission supports to show the fields in the front end. If you just want to display the fields, please use the shortcode of this extension to show the fields in a form, then you can use the Javascript code to pause the action form submit and do your stuff after.
Example
jQuery(document).ready(function($) { $('.rwmb-form-submit button').on('click', function(e) { e.preventDefault(); alert(1); // Do your stuff }); });Hope that helps.
- Create a
-
AuthorPosts