Angelo Rocha
Forum Replies Created
-
Forum: Plugins
In reply to: [CMB2] Show and hide metaboxWould be to hide metaboxes in accordance with the context of a publication.
eg .:
A metabox with options of real estate, radio fields:
1 – Houses
2 – Apartments
3 – CommercialWhen you select the Home option, metabox with specific options Homes is shown.
When you select the option Apartments, one metabox with specific options Apartments is shown.…
This is an example and does not match what i’m doing, but the context is the same.
Not the best solution, but i set an empty parameter in the function cmb_get_post_options().
'options' => cmb_get_post_options(''),
Forum: Plugins
In reply to: [CMB2] Add metabox in submenu page on custom post typeAwesome!
Thanks guy.Forum: Plugins
In reply to: [CMB2] Add metabox in submenu page on custom post typeI tried using this class as an example, but not understand its operation.
public function add_options_page() { $this->options_page = add_menu_page( $this->title, $this->title, 'manage_options', $this->key, array( $this, 'admin_page_display' ) ); // Include CMB CSS in the head to avoid FOUT add_action( "admin_print_styles-{$this->options_page}", array( 'CMB2_hookup', 'enqueue_cmb_css' ) ); }
What is the correct syntax to add a submenu page?
Forum: Plugins
In reply to: [CMB2] CMB2 Group Fields – Number RowsI’m using 2.0.6 version.
Michael, this is my problem =DThanks Justin, i waiting new release.
Yes.
Thanks for this function \o/
But in debug, show this warning:
Warning: Missing argument 1 for cmb_get_post_options(), called in ... on line 41
Notice:
Notice: Undefined variable: query_args in ... on line 43
How to fix it?
Forum: Plugins
In reply to: [CMB2] File field – Limit file typeOk, thanks.
Forum: Plugins
In reply to: [CMB2] Order MetaboxesI understand.
Thank you.Forum: Plugins
In reply to: [CMB2] Text Date FieldThanks!
Works Fine.I’m use:
'date_format' => 'd-m-Y',
Forum: Hacks
In reply to: Move publish metaboxNot work =/
Forum: Plugins
In reply to: [CMB2] Field file show no imageHey Bro!
Works fine, to return image url in specific size:$cover = wp_get_attachment_image_src(get_post_meta( get_the_ID(), "_omnicmb_book_cover_id", 1), 'book_cover'); echo $cover[0];
CMB2 is awesome!
Forum: Plugins
In reply to: [CMB2] Field file show no imageThis same documentation: https://github.com/WebDevStudios/CMB2/wiki/Field-Types#file
When I change the code to:
$cover = get_post_meta( get_the_ID(), "_omnicmb_book_cover", true);
It returns the url for the big image, but I can not get the image to a specific size.
Forum: Plugins
In reply to: [CMB2] Field file show no imageI have not received anything but an empty string, was to return an image with a size “X”
Ok.
Thanks.