Forum Replies Created
-
AuthorPosts
-
June 27, 2019 at 10:29 AM in reply to: ✅Gutenberg Sidebar Media Upload Clash with image_advanced #15125
Anh Tran
Keymaster@latlong: There is an updated fix on this, can you try the latest version on Github?
Anh Tran
KeymasterI'd suggest not using
requiredwithselect_treeas the logic is confusing. Therequiredattribute will be applied to allselect, no matter where it is and which level it has.Anh Tran
KeymasterThis is a bug in the plugin and is already fixed here:
https://github.com/wpmetabox/meta-box/commit/2c2e7da9e3cb340edcff2d80069e1fb27f1910a2
Please apply it in the mean time. I'll update the Meta Box plugin in a few days.
Anh Tran
KeymasterHey guys, I've just found the bug and fixed it here:
https://github.com/wpmetabox/meta-box/commit/03df0e3e52ff69db981e81fedb62aca31e62c679
@Kim: I also applied the fix on your website and it works great.June 27, 2019 at 8:58 AM in reply to: Memory issues and unbound queries - "Query posts for field options" #15120Anh Tran
KeymasterHi Vinny,
The query function makes sure you can get all posts to connect to/from. If you don't need to do that, you can optimize the query by using the
query_argsparameter for thefromortoside to avoid the'posts_per_page' => -1.See this docs for details:
https://docs.metabox.io/extensions/mb-relationships/#syntax
There is no way for us to figure out all the use cases for this core function, but does MB really need to store all post fields?
As you see, we're using
WP_Queryand it doesn't have any option to return some fields. Besides, we need all post fields in case developers want to filter what field to display.Anh Tran
KeymasterHi Ryan,
That's the expected behavior, since the plugin has to perform search in different places: title + content (default WP behavior), custom fields and/or custom table. We had to make it search in each places and merge the result. So, the
posts_searchfilter probably won't be applied.June 26, 2019 at 3:07 PM in reply to: ✅Gutenberg Sidebar Media Upload Clash with image_advanced #15100Anh Tran
KeymasterFYI, I've just merged the code into the master branch on Github. If you have time, please try it:
Anh Tran
KeymasterCan you show me a screenshot of the bug?
June 26, 2019 at 2:51 PM in reply to: Memory issues and unbound queries - "Query posts for field options" #15097Anh Tran
KeymasterHi Vinny,
Do you have a lot of posts? Can you try increase the memory limit?
https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php
Anh Tran
KeymasterHi Buzz,
This probably is the reason (and solution):
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/
Anh Tran
KeymasterHi @Torben,
Did you mean display the value of the image_select field in Elementor? If so, please just select the field from the list provided by Meta Box - Elementor Integrator plugin.
Anh Tran
KeymasterYes, the new code has been moved to
admin-columns.phpfile but it's still the same. The fix was changing fromget_poststoWP_Query.I've just tested again with the code in the first reply and it seems to work fine. Can you post your code?
Anh Tran
KeymasterHi Chris,
If you're using the classic editor, you'll see the class here:
https://imgur.elightup.com/931YMwn.png
Another note: you can add the CSS class simpler by going to tab Appearance and enter your class into "Custom CSS Class":
Anh Tran
KeymasterI just found the problem. It's kind of a way the JavaScript works for cloning editors. The problem is the ID of the editor ends with
_123, e.g._{number}. This format is reserved by the clone script to update the editor ID/name. Please just change the ID of the editor and it will work again.Anh Tran
KeymasterHi Kim, please send me a temporary admin account to check?
-
AuthorPosts