Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterI'm not sure about this, because the way WordPress build SQL queries from meta query object is very complicated. I'll see if I can do something.
February 22, 2018 at 10:27 AM in reply to: Conditional logic not working with clones in groups #8591Anh Tran
KeymasterThanks for letting me know about that. Currently, handling removing images inside the media library is lack. It's kind of complicated. I will try to figure out from the Media Popup code later.
Anh Tran
KeymasterThanks a lot for your help! This CSS is for making sure inputs do not overflow the column width. I've changed the CSS and updated the plugin. Please let me know how it goes.
Anh Tran
KeymasterI've tested and it works for me. Did you add the field for an existing post? The
stdparameter only works for new posts, or posts that the meta box hasn't saved before. I guess your post has an existing meta box that already saved at least once before. Can you check that?Anh Tran
KeymasterHi,
Thanks for the greeting 🙂
The Custom Table extension hasn't incorporated with the meta query yet. Please use 2 queries to get posts: 1 for getting post IDs from the custom table and one for getting posts. This is the sample code:
global $wpdb; $post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM your_table WHERE obh_note_associated_members LIKE %s", $post->post_author ) ); $query_args = array ( 'post_type' => 'obh_note', 'orderby' => 'meta_value', 'meta_key' => 'obh_note_date_time', 'order' => 'ASC', 'post__in' => $post_ids, ); //The query $member_notes = new WP_Query( $query_args );Anh Tran
KeymasterI haven't encountered that before. Let me check that.
FYI, the whole upload functionality is created by WordPress. We move it to the frontend, but don't touch on the core code.
Anh Tran
KeymasterHi Saqib,
Sorry for the late reply. We're just been back from the Tet holiday. Regarding the bug, I've just tested and the map market is showing:
https://imgur.elightup.com/oPWhPGl.png
Do you see any error in the console? Normally, Google Maps will shows errors in the console of there's any.
By the way, can you send me your meta box code to check?
Anh Tran
KeymasterBy the way, you can do almost what missed with Custom Attributes for fields in the Builder. Please see the docs for that. It’s not intuitive, but works.
Anh Tran
KeymasterHello,
The Builder extension was made 3 yearss ago when the functionality of Meta Box and other extensions are limited. However, its purpose is providing full support for plugins. We have just acquired this extension from the original developer (Tan Nguyen) and thus, are updating it to catch all the changes in other plugins recently.
We understand that there are some features are limited, and we’re trying to fix it. It would be great if you can help us by listing what you see missed.
Regarding the online generator, yes, it’s the limited version of Builder with support only for the core Meta Box plugin. After updating the Builder to fully support other extensions, we’ll probably update it as well, but that’s not the priority.
Anh Tran
KeymasterLet’s close this topic as we have resolved it via email. The problem was that the custom attributes should be set for meta box, not for fields.
Anh Tran
KeymasterThis is the default behavior of the plugin. And unfortunately, we have to follow that 🙁
Anh Tran
KeymasterHi, please use “std” parameter.
Anh Tran
KeymasterHi Hazmi, sorry for the delay in replying.
The
image_advancedfields loads saved value via ajax request, so it takes a little time. Only when it's loaded, the field inputs are added. So, please don't update the post before it finishes loading (in that case all inputs are not fully added, and updating will make the post lost saved values).February 13, 2018 at 10:05 PM in reply to: Conditional logic not working with clones in groups #8545Anh Tran
KeymasterI got it. In this case, please add
'clone_default' => trueto the field and thestdvalue will be cloned, too.Anh Tran
KeymasterHello,
The logic should work. There is just a small typo in your code. In the response, the param should be
idinstead ofid:.However, loading selected posts to show after updating is the next problem. We need to update
optionsparameter to make the field renders properly. So, I added 2 more functions to get the saved data and put them in theoptions: -
AuthorPosts