Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Adrien,
I'm afraid the plugin only supports static value. There's no way to make it understand the dynamic value at the moment.
Anh Tran
KeymasterIt's a little rush of you. Let me know if you find anything buggy from now on.
Anh Tran
KeymasterOK. At least it works for now as you can't reproduce the issue. Let me know if you need any help!
Anh Tran
KeymasterHi Cedric,
1st question: It depends. Both ways work. The 1st one seems to show users the content, while the 2nd one seems to be more cleaner.
2nd question: To show the title, but don't want to let users edit them, you can use 2 methods:
- Use a little PHP to output the post title (and exclude post title field from the form shortcode)
- Or modify the template for post title field (see this guide) and add a new param
'readonly' => trueto let users not able to edit it.
Anh Tran
KeymasterThis is fixed in the version 4.18.4 of Meta Box. Please update.
Anh Tran
KeymasterHi, please change the code to:
$object_imgs = isset( $object['dekor_image'] ) ? $object['dekor_image'] : array(); if ( ! empty( $object_imgs ) ) { foreach ( $object_imgs as $object_img ) { $image = RWMB_Image_Field::file_info( $object_img ); echo '<a href="'. $image['full_url'] . '" rel="fancybox"><img src="' . $image['full_url'] . '" alt="' . $image['alt'] . '" /></a>'; } }Anh Tran
KeymasterYou can get the email using this code:
$user = wp_get_current_user(); $email = $user->user_email;Anh Tran
KeymasterOk, no problem. I've just sent you the refund.
Have a nice day!
Anh Tran
KeymasterHi netalys,
I've just tested with a select field and 60+ options. I didn't see any problem with the performance. Please see this video:
Anh Tran
KeymasterHi netalys,
Can you check on your database using a tool like phpMyAdmin to see if the post content and post excerpt is there for the post?
Anh Tran
KeymasterHi Nattapat,
Thanks a lot for your feedback and supporting us! I really appreciate your comments.
- Regarding MB Builder, the new version is coming in just a few days. I'm finalizing some issues just to make sure I don't have to release another hotfix version again.
-
Regarding WP All Export, I appreciate your feedback and please understand that this is also a very important thing to us, too. This is on the plan and we're going to work on that after finishing the Gutenberg extension (that allows you to create Gutenberg blocks, it's 80% done). Working on Gutenberg takes longer than we expected since there are some technical difficulties, but we're trying so hard to make it done. Probably in 1-2 weeks.
If you can wait for us about 1-2 weeks, then I'll try my best to finish the WP All Export as soon as I can. In another case, I'm happy to send you the refund.
Anh Tran
KeymasterHi Alex & Adrien,
Please see the section "Context not working" on the docs:
https://docs.metabox.io/creating-meta-boxes/#contexts-not-working
July 3, 2019 at 9:39 AM in reply to: ✅Serialized array for select_advanced saves incorrectly on front-end submission #15221Anh Tran
KeymasterHi,
Do multiple meta boxes use different custom tables? If they use the same custom table, that might not work properly.
Anh Tran
KeymasterHi,
Did you mean querying posts by custom fields?
If so, please try this code:
add_filter( 'rest_{type}_query', function( $args ) { $args['meta_query'] = array( array( 'key' => 'my_field', 'value' => esc_sql( $_GET['field'] ), ) ); return $args; } );REST URL:
http://site.com/wp-json/wp/v2/posts?field=testThe wildcard
{type}can be: post | user | comment | attachment | custom post type | taxonomy.Anh Tran
KeymasterHi Jiro,
Yes, you need to do 2 requests:
- First request for adding the image to the WordPress library. You can try this tutorial on doing that: https://stackoverflow.com/q/37432114/371240
- Second request to set the image for user profile. See this guide on doing that.
-
AuthorPosts