Forum Replies Created
-
AuthorPosts
-
July 27, 2024 at 7:37 AM in reply to: ✅post-field: relative path, text-field: html not working #46026
Peter
ModeratorHello,
1. The post field saves the post ID to the database. You can get the raw field value (post ID), and get a relative path based on the ID. Following the WordPress documentation https://developer.wordpress.org/reference/functions/wp_make_link_relative/
2. Please bypass the sanitization to add HTML tags to the text field
https://docs.metabox.io/sanitization/#bypass-the-sanitizationJuly 27, 2024 at 7:27 AM in reply to: ✅image_advanced data not stored as multiple rows in database anymore #46025Peter
ModeratorHello,
The field image_advanced still saves multiple images in multiple rows to the database.
- If you enable the option cloneable and "clone as multiple", the field value will save an array of images per clone in the database.
- If you disable the option "clone as multiple", all images will be saved in one row.I hope that makes sense.
Peter
ModeratorHello Andrew,
Please try to add the specific post ID to the helper function
rwmb_meta()and check if it works:<?php $files = rwmb_meta( 'fees_file_upload', '', 123 ); ?>where 123 is the post ID. Following the documentation https://docs.metabox.io/functions/rwmb-meta/
Peter
ModeratorHello,
I see that is expected. In the field settings, the basic style will be displayed, as other fields like text, textarea ... When the value is output in the block editor area, the custom style is applied and show the custom font.
Peter
ModeratorHello,
Currently, it isn't possible to get the post ID of the post in the Query Loop block of WordPress. It is a bug of WordPress itself, you can get more information in this topic https://wordpress.org/support/topic/query-loop-block-get-display-each-post-id/
Or you can create a loop with View template and add the shortcode to the page content. Please follow this topic https://support.metabox.io/topic/reusable-template-parts/
Peter
ModeratorHello,
If the user role
Assistantonly has the capabilityreadenabled, how does the user create or edit a post? Do you submit the post in the frontend with the Frontend Submission form?
I test to add a custom roleAssistanton my demo site and can still see the post type in the relationship box in the frontend.Peter
ModeratorHello Yumiko,
Can you share some screenshots of the issue? I understand that the font in the WYSIWYG field value is different from the value that is rendered in the block editor area.
Peter
ModeratorHello,
Please share your site admin account and details of the issue by submitting this contact form https://metabox.io/contact/
I will take a look.July 25, 2024 at 9:53 PM in reply to: ✅How to display post contents in a list in a way respecting the paragraphs? #46008Peter
ModeratorHello Eddy,
1. This is basically a custom code. You can follow this topic to create read more button and limit words of a content with JavaScript code
https://stackoverflow.com/questions/23170581/text-in-div-limited-characters-add-read-more-link-and-show-all-characters-whe2. Can you share some screenshots of the post content in the admin area and frontend? Do the paragraphs have
<p>tags if you switch to the tab Text of the editor?Peter
ModeratorHello,
Thank you for sharing the details.
Can you try the steps one by one and let me know which causes the issue?
Getting data and creating a woo simple product through Woo API. Creating a post in custom post type "autor" with WordPress API. Creating a post in custom post type "translator"with WordPress API.. Updating metabox fields and relations through WordPress API.Then share some code or screenshots of the steps you do so I can reproduce the issue on my end.
July 24, 2024 at 9:07 PM in reply to: ✅Frontend data submission not saved for user role subscriber #45997Peter
ModeratorHello Eddy,
If the subscriber user role can save the data in the admin area, it should work in the frontend also. You can try to. deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme of WordPress and check the issue again.
I tested this feature on my demo site but couldn't reproduce the issue.Peter
ModeratorHello Yumiko,
This issue has been fixed in the new version of the plugin MB Rest API. It will be included in the next update of Meta Box AIO.
https://github.com/wpmetabox/mb-rest-api/commits/master/Peter
ModeratorHello Eddy,
You can check the array of video subfield is not empty and output a heading before using the loop to show the video. Here is an example:
{% if post.group[0].video is not empty %} <h3>Videos</h3> {% endif %} {% for clone in post.group %} {% for item in clone.video %} {{ item.rendered }} {% endfor %} {% endfor %}Peter
ModeratorHello Yasmine,
In the new version of Meta Box 5.9.11, the issue with the checkbox tree field type was fixed in the admin area. Can you please confirm it works? In the frontend form, we are still working on it.
Peter
ModeratorHello,
Please share your site credentials by submitting this contact form https://metabox.io/contact/
I will take a look. -
AuthorPosts