Forum Replies Created
-
AuthorPosts
-
November 28, 2019 at 5:35 PM in reply to: Fatal error: Allowed memory size of # bytes exhausted #17213
Anh Tran
KeymasterHi pza, thanks for the feedback. I'll check the issue and update it today.
Anh Tran
KeymasterHi Anja,
In MB Builder, assuming you have something similar to this:
https://imgur.elightup.com/8xKDkzJ.png
And you have added a block to a post with the following content:
https://imgur.elightup.com/FhbHQHn.png
Then you can use this template code in the MB Builder to display the group:
{% set products = mb.mb_get_block_field( 'products' ) %} {% for product in products %} <h4>{{ product.product_title }}</h4> {% for image_id in product.product_images %} {% set image_url = mb.wp_get_attachment_url( image_id ) %} <img src="{{ image_url }}"> {% endfor %} {% endfor %}https://imgur.elightup.com/kMIPGrv.png
Here is the result:
https://imgur.elightup.com/PaIXpG4.png
(sorry for big images)
November 27, 2019 at 10:48 PM in reply to: ✅Choose an image from the gallery as a cover image in MB Frontend Submission #17193Anh Tran
KeymasterHi Sergio,
Yes, your question is clear. I've been thinking about the solution, and I found one.
The idea is changing the field type for thumbnail from
imagetosingle_image. Please follow these steps:- Create a folder
mb-frontend-submissionin your theme, inside that folder, create a sub-folderpost. - Copy the file
thumbnail.phpfrom the plugin'stemplates/post/folder to thepostfolder above. - Replace the content of the copied
thumbnail.phpwith this code.
And try again.
Please note that, in order to open the media popup, your users need to log in and have proper capability. See how to add capability here.
November 27, 2019 at 3:57 PM in reply to: ✅Change Frontend Submission Config using Javascript #17178Anh Tran
KeymasterHi kesit,
In the latest version, we have changed the way to output form config on the front end. It now displays only a hidden key instead of full list of options. This is for security reason. So, I'm afraid you can't change the confirmation with JavaScript anymore.
November 27, 2019 at 3:55 PM in reply to: Fatal error: Allowed memory size of # bytes exhausted #17177Anh Tran
KeymasterSo strange. Do you see any JS error in the console?
Anh Tran
KeymasterHi,
Can you please confirm which plugins are activated? Are Meta Box AIO and/or the individual Meta Box Beaver Themer Integrator activated?
I've just tried on my localhost with Meta Box AIO activated and Meta Box Beaver Themer extension enabled in the AIO (not the individual plugin) and don't see the error.
Anh Tran
KeymasterHi Johannes, I'll check it now and will fix it.
Anh Tran
KeymasterHi Chris,
I'm checking it now and will fix it.
PS: This topic is duplicated. I'll close it in favor of a previous topic.
November 26, 2019 at 4:03 PM in reply to: Fatal error: Allowed memory size of # bytes exhausted #17139Anh Tran
KeymasterHi Purdue, can you enable debug and see if there's any error?
Anh Tran
KeymasterHey guys, let me check the issue and will reply you soon.
Anh Tran
KeymasterHi, currently it's not available yet. I'll make a note for that and put it on the roadmap.
Anh Tran
KeymasterI see. Don't worry. I've just issued the refund for you.
Anh Tran
KeymasterHi Martin, I've just released a new version for MB Builder, which fixes this error. Please update.
November 24, 2019 at 9:09 PM in reply to: Fatal error: Allowed memory size of # bytes exhausted #17095Anh Tran
KeymasterHi, I've just pushed a new version of MB Builder, which has a fix for this issue. Please update.
November 21, 2019 at 9:55 PM in reply to: ✅Feature Suggestion: one query to get all custom fields in a group #17064Anh Tran
KeymasterHi Mauro,
If you make a query with WP_Query, then by default, WP will automatically fetch meta data for all posts in the query. So, whenever you call
get_post_meta(orrwmb_meta, orget_post_custom, e.g. any meta-related functions), there will be no extra queries to the DB made.See the
update_post_meta_cachefor the WP_Query. Better explanation can be found here: https://10up.github.io/Engineering-Best-Practices/php/ - Create a folder
-
AuthorPosts