Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
Weβre working on that. It will be released latest early next week. Please wait.
Thanks for understanding.
Anh Tran
KeymasterHi,
Sorry to reply late. The file upload field actually doesn't open the Media Library for selecting files (you can do that with file advanced field). I should have corrected the documentation π
Anh Tran
KeymasterHi,
Can you try this code:
$images = rwmb_meta( 'gallery' ); $image_ids = array_keys( $images ); $shortcode = '[' . 'gallery ids="' . implode(',', $image_ids) . '"]'; echo do_shortcode( $shortcode );Anh Tran
KeymasterHi Thomas,
Your case is a combination of the featured image rule with this tutorial.
I added the solution to the library. Please take a look.
(Note: I removed all textdomain and prefix to help others see the code clear).
Anh Tran
KeymasterI've just fixed this bug and tested with your code in version 1.2.1. Please update!
Anh Tran
KeymasterHi Thomas, I've just updated the plugin, adding support for Featured Image. Please see the documentation for usage.
Cheers
Anh Tran
KeymasterThanks a lot for your code. I will look at that and fix as soon as I can.
Anh Tran
KeymasterUnfortunately, it's not possible for now. But that's a good idea when combining meta box ids into 1 parameter. I'll see if I can implement that.
Anh Tran
KeymasterHi,
We've never changed plugin slug. It's always
meta-box-group. I think you or someone made a typo mistake totmeta-box-group. There's no reason for a "t" here.Anh Tran
KeymasterHi Thomas,
Let me see if I can find a workaround for this.
Anh Tran
KeymasterHi Ahmed,
I have fixed the 1st issue with this commit. Can you please try it?
Regarding the 2nd issue with the remove clone button, it's actually a bug in your code. Please just close the
</b>tag properly and the bug will go away.Let me know if you still see any bug.
Anh Tran
KeymasterHi,
Thanks for a great question. There was no such functions. I've just added it on Github and added example in the documentation. Please update the code for Meta Box from Github and follow the documentation. I will release a new version soon.
Anh Tran
KeymasterHi Thomas,
I got it. The easiest way to order those fields is just order the code for them. The code that write first will display first.
Let's say you want to move "Hide Post/Page Theme Header" to the top of the list, then just move this code to the top
if ( isset( $meta_box['id'] ) && 'totalpress-post-page-options' == $meta_box['id'] ) { $meta_boxes[$tp_primo_mb]['fields'][] = array( 'id' => 'tp_primo_page_options_hide_header', 'type' => 'checkbox', 'desc' => esc_html__('Hide Post/Page Theme Header','tp-primo'), 'tab' => 'totalpress_hide_post_page_elements', ); // Code for other checkboxes goes here }January 3, 2018 at 9:12 AM in reply to: Function similar to update_post_meta for MetaBox.io custom table plugin #8106Anh Tran
KeymasterWe don't have such function yet. Please use
$wpdb->insert. It's short and fast. -
AuthorPosts