Forum Replies Created
-
AuthorPosts
-
June 27, 2019 at 4:50 PM in reply to: ✅Apostrophe and quotation mark in post type Plural ans singular name #15139
Anh Tran
KeymasterHi Andrien,
The AIO update will be available on Monday. I've updated only MB Custom Post Type plugin.
June 27, 2019 at 3:43 PM in reply to: ✅Cloning a Metabox Group item results in 'property content is undefined' #15134Anh Tran
KeymasterI got it! Can you try this updated version?
Anh Tran
KeymasterHi Max,
You can do raw SQL query like this:
global $wpdb; $ids = $wpdb->get_col( "SELECT <code>to</code> FROM $wpdb->mb_relationships WHERE <code>from</code> = 123 AND <code>type</code> = 'your_relationship' ");PS: I think
WP_Queryis fine if you set'fields' => 'ids'.June 27, 2019 at 3:36 PM in reply to: ✅Apostrophe and quotation mark in post type Plural ans singular name #15132Anh Tran
KeymasterHi Axel,
Thanks a lot for your feedback. I've just fixed it and released a new version.
Anh Tran
KeymasterHi Dave,
It's clear that GF works only with standard WP user meta. It doesn't work with any custom table (not only MB Custom Table, but all).
I think the solution is writing a custom code to hook to GF query, as they said. Unfortunately, I'm not experience with that.
Anh Tran
KeymasterHi again,
There is an updated fix for this bug, can you please try the development version here?
June 27, 2019 at 10:29 AM in reply to: ✅Gutenberg Sidebar Media Upload Clash with image_advanced #15125Anh 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
-
AuthorPosts