Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Flikweert,
I understand your concern, but there's no way to handle image upload in the group for now.
But you can use another way to achieve that by using
file_inputfield. It works similar to all image fields (can Browse or Upload images), but doesn't have preview. It's not 100% perfect for your needs, but it works for now.Anh Tran
KeymasterFYI, the latest version of Meta Box Show Hide now supports check for
is_child. Please try it out!Anh Tran
KeymasterHi, there's a way to change the returned value of
rwmb_metawhich can be useful for your case.The filter is
rwmb_metaalso and we can do like this:add_filter( 'rwmb_meta', 'prefix_meta', 10, 4 ); function prefix_meta( $meta, $key, $args, $post_id ) { if ( ! is_search() ) return $meta; // If this is search page, do whatever you want with the returned value $meta $meta = ''; return $meta; }Anh Tran
KeymasterFYI, the Conditional Logic has just been released. Please redownload the Core Extensions Bundle to get it.
If you have any problem using the new extension, please let us know in the support forum.
Thanks and enjoy!
Anh Tran
KeymasterThanks for your replies. Let me check it.
Anh Tran
KeymasterHi daveheslop,
This plugin is under development and will be available soon. When it's available, it will be included in the Core Extensions Bundle and you can download it from your account page.
Anh Tran
KeymasterYes, of course. You can use the following code to output the full URL of an image:
$image = rwmb_meta( 'field_id', 'type=image' ); echo $image['full_url'];For more information, please read this documentation.
Anh Tran
KeymasterHi again,
FYI, this feature has just been added to the latest version 4.5.4. Please update the plugin to use it.
Thanks for your idea and enjoy the plugin!
Anh Tran
KeymasterFYI, this feature is now available in version 4.5.4. Please update the plugin to use it.
Enjoy!
Anh Tran
KeymasterHi,
From the output above, I guess you have a cloned group. So the value returned from
rwmb_metafor group field is an array (of clones), each element of which is an array of sub-fields' values.To get value for the fields, you can use the code below:
$sku_key = 'sw_swsku'; $product_group = rwmb_meta( 'products' ); foreach ( $product_group as $product ) { $sku_value = isset( $product[$sku_key] ) ? $product[$sku_key] : false; echo $sku_value; }Anh Tran
KeymasterHi PixArt, sorry for late reply. I've just back from honeymoon.
In latest version of Meta Box Show/Hide, there's a new option
input_value, which allows us to show/hide meta boxes based on value of an input (select dropdown, checkbox, etc.). You can use that to show/hide meta boxes when it's a parent/child page, like this:'input_value' => array( '#parent_id' => '', // For child page // '#parent_id' => 227, // For parent page, where 227 is parent page ID )Please let me know if it works for you.
Anh Tran
KeymasterHi gerda, sorry for late reply. I've just back from honeymoon.
The show/hide should work immediately when you check a checkbox or select a value in a select dropdown, just like other options. Doesn't it work that way for you?
Anh Tran
KeymasterFYI, we're adding a new parameter to field called "max_clone" to limit number of clones. The development version is on Github. We're testing and fixing some small issues before releasing new version.
Anh Tran
KeymasterHi gerda,
I've just updated the documentation with example. Please let me know if it's clear enough.
Thanks.
Anh Tran
KeymasterThank you very much for the idea! Yes, this feature is great and we're going in the same path. We're improving the UI a little and will release it soon ๐
-
AuthorPosts