Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterThanks, Piet. Any chance to run the update again?
Anh Tran
KeymasterHi,
We've just noticed about this issue recently (https://github.com/rilwis/meta-box/issues/678) and we're working on this. Please wait.Thanks
Anh Tran
KeymasterCan you please try updating again? Sometimes it's because of the connection between your websites and metabox.io. I've just tested updating on my localhost and it works.
If the error still exists, can you please give me the full error message?
Thanks.
Anh Tran
KeymasterThe problem is you're using single quote twice (for
styleattribute and forurlin background), that makes the HTML invalid. You can omit the quote forurl, like this:<?php $images = rwmb_meta( 'meta-about-image', 'type=image' ); foreach ( $images as $image ) { echo "<a href='#' style='background: url({$image['full_url']});'></a>"; } ?>Anh Tran
KeymasterHi Piet,
New version of the Meta Box was released yesterday. Please try it ๐October 27, 2015 at 9:45 AM in reply to: Global content with metabox/sharing content between pages #1622Anh Tran
KeymasterIt's in beta phase. I'm testing it to make it compatible with Meta Box 4.6. I will inform you when it's done.
October 26, 2015 at 8:04 AM in reply to: Global content with metabox/sharing content between pages #1618Anh Tran
KeymasterHi,
I'm afraid what you are asking are outside the scope of post meta. And that is not handled by Meta Box.However, I'm building a premium extension which can help you to create settings page, where you can add global data for all posts. It might fit your needs (it just doesn't have the same UI in all edit post page).
PS: Do you want me to change your email?
Anh Tran
KeymasterHi, you can simply use the helper function
rwmb_metato retrieve alt text of the image, like this:$images = rwmb_meta( 'capa_evento', 'type=image&size=large' ); foreach ( $images as $image ) { echo "<li><img src='{$image['url']}' alt='{$image['alt']}' /></li>"; }Your code is outdated, it was in old code of Meta Box.
For more information about the helper function, please read the documentation here.
Anh Tran
KeymasterThe
rwmb_metaonly returns the raw value of the field. It does not parse any shortcode or apply formats by default. In your case, you can make it parse shortcodes by:echo do_shortcode( rwmb_meta( 'field_id' ) );Anh Tran
KeymasterUnfortunately, Tabs is not supported by Group extension. You can use Columns extension with Group. The UI of the tabs is too special and not suitable for groups.
Anh Tran
KeymasterCan you please write in English?
Anh Tran
KeymasterHi,
I don't see
post_typesparameter for the meta box. Please add this:'post_types' => 'page', 'fields' => ... // Your fields hereFor more info about
post_types, please check here.Anh Tran
KeymasterIf you just want to show, then you can use the
custom_htmlfield. This field can show any content in your meta box. You just need to pass$post->post_excerptto itsstdattribute, like this:global $post; // Define meta box ... 'fields' => array( array( 'type' => 'custom_html', 'std' => $post->post_excerpt, ), )Anh Tran
KeymasterI've just pushed a fix to Github. It will be in the core plugin in the next version (soon).
Thanks for letting me know about the bug!
Anh Tran
KeymasterLet me check that again. By the way, are you using the stable version or development version on Github?
-
AuthorPosts