Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
I understand you want to render the shortcode in the WYSIWYG field value. And it is already noted in the documentation
https://docs.metabox.io/fields/wysiwyg/#template-usage
Note that the helper function doesn't format the value of this field nor run shortcodes in the content. In case you want to make it behaves similar to the post content (e.g. format and shortcodes), use this code:global $wp_embed; $value = rwmb_meta( 'wysiwyg_field_id' ); $value = do_shortcode( wpautop( $wp_embed->autoembed( $value ) ) ); echo $value;https://docs.metabox.io/shortcode/
[rwmb_meta id="wysiwyg_field_id"]render_shortcodeWhether to render inner shortcodes inside the value of the field. For example, if you enter a shortcode in a textarea/editor field, this attribute will render that shortcode and return the rendered content. Default true.Have you applied those on your site and see how it goes?
Peter
ModeratorHello,
However when I do that I run into issues with trying to call the API functions (rwmb_meta) even when passing in the table args params.What exactly are the issues? And let me know the code that you use to call the API function.
Peter
ModeratorHello,
I don't have any idea. Please share your site credentials via this contact form https://metabox.io/contact/
I will take a closer look.Peter
ModeratorHello,
If you want to run the shortcode in the WYSIWYG field value, please follow the documentation
https://docs.metabox.io/fields/wysiwyg/#template-usageOr use the helper shortcode https://docs.metabox.io/shortcode/
Peter
ModeratorHello,
Thanks for sharing the information.
Following the WordPress documentation, the attachment post (media) could be considered a child of a post so you can use the post_status
inheritoranyto get the attachment posts.
https://developer.wordpress.org/reference/functions/get_children/
https://wordpress.org/documentation/article/post-status/I will inform the development team to update the doc for this case.
November 26, 2023 at 9:08 AM in reply to: Rewrite permalink of CPT taxonomy to equal of archive page #43929Peter
ModeratorHello Dani,
For the taxonomy: You can edit the custom taxonomy > Advanced tab > Custom rewrite slug > Add the rewrite slug "information" > Save changes.
For the CPT: You can edit the CPT > Advanced tab:
- Enable option: Has archive
- Custom archive slug: information
- Save changes.and re-save permalink settings. It works correctly on my demo site.
Peter
ModeratorHello,
Thanks for your feedback.
After adding the sample code to create the custom model as in the documentation https://docs.metabox.io/extensions/mb-custom-table/#custom-models
I only see the error one time and everything works as well. However, I will report this issue to the development team to fix it in future updates.November 24, 2023 at 9:09 PM in reply to: ✅Fontend submission : classic type content -- convert to blocks? #43910Peter
ModeratorHello,
I will inform the development team to consider supporting this case in future updates.
Thank you.
November 24, 2023 at 8:59 PM in reply to: Connecting multiple CPTs for a single post type template #43909Peter
ModeratorHello Stefan,
I think you are trying to create a travel theme which will need a lot of custom code to do. With Elementor Pro or Bricks, it isn't possible with only drag and drop. With View, which is a code editor, not a builder, it isn't enough to use only View to do that, you still need to use PHP code.
You can refer to this series https://metabox.io/build-hotel-booking-web-use-meta-box-p1/
if you are not able to complete the task, please contact us here https://metabox.io/contact/
we offer a customization service with an extra fee.Peter
ModeratorHello,
You can contact Beaver builder support if they support creating a single post template in the loop/archive page. If yes, I think you can add the MB View shortcode there. If not, you need to create your own custom loop to display posts and insert anything into the code.
Peter
ModeratorHello,
If the issue relates to the plugin/extension MB Custom Post Type when registering the custom post type, can you please generate the PHP code and add it to the file functions.php in the theme or child theme folder and check this issue again? This extension helps you to register the post types, taxonomies with UI instead of using the WordPress function
register_post_type().Refer to the documentation
https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
https://developer.wordpress.org/reference/functions/register_post_type/Peter
ModeratorHello,
The leaflet css only loads when rendering the field so if you remove it, the OSM map field does not work properly. There isn't a way to remove the CSS unless you modify the source code directly.
Peter
ModeratorHello Arno,
You can try to use the bypass sanitization and add the encoded URL to the text field again. Following the documentation https://docs.metabox.io/sanitization/#bypass-the-sanitization
November 23, 2023 at 9:22 PM in reply to: MB Block Select Advanced Multiple Times on Post Bug? #43899Peter
ModeratorHello Andrew,
Thanks for your feedback.
I can see the issue on my demo site. I've escalated this issue to the development team to fix the issue in the next update.
November 23, 2023 at 8:34 PM in reply to: ✅How to allow adding more choices for Checkbox List fields on Dashboard? #43898Peter
ModeratorHello,
You can upgrade the user role to the administrator or use the plugin User Role Editor to set the capability of the user to have the same capability as the administrator.
https://wordpress.org/plugins/user-role-editor/ -
AuthorPosts