Metabox date month number to word

The code you are using is specifically for the month abbreviation, (Oct). You should be using this: function eventposttype_get_the_month($month) { global $wp_locale; for ( $i = 1; $i < 13; $i = $i +1 ) { if ( $i == $month ) $month =$wp_locale->get_month( $i ) ; } return $monthabbr; }

Metabox repeating fields – radio buttons not saving correctly

So I came back to this after practice and implemented some of the Alchemy setup, meaning all the inputs have names like name=”_movies[3]Metabox repeating fields – radio buttons not saving correctly” where 3 is the iteration we’re on in the loop. Create the Metabox // metaboxes should be registered on the add_meta_boxes hook add_action(‘add_meta_boxes’, ‘add_meta_boxes’ … Read more

How to add metabox for post of specific category

Instead of if ($post_id->post_category[0] == 18) try if ( $post_id && in_category( 18, $post_id ) ) Also the ‘save_post’ action should be add_action(‘save_post’,’my_meta_save’, 10, 2); If you want the metabox to appear on a new post when the category is selected, then remove the outer category test if statement so that the metabox is always … Read more

echo value from ‘select’ field type into page template using cmb2?

For starters, I recommend you use the API for register metaboxes and fields which can be seen here: https://github.com/WebDevStudios/CMB2/wiki/Basic-Usage#create-a-metabox. To echo the select option’s label, you would do something like this: add_action( ‘cmb2_admin_init’, ‘custom_metabox’ ); function custom_metabox() { $cmb = new_cmb2_box( array( ‘id’ => REALIA_PROPERTY_PREFIX . ‘ficha_tecnica’, ‘title’ => ‘Ficha Técnica’, ‘object_types’ => array( ‘property’ … Read more

Hiding a theme’s meta box

Remove WordPress Meta Boxes You have to make use of the function called remove meta box. Description: Removes a meta box or any other element from a particular post edit screen of a given post type. It can be also used to remove a widget from the dashboard screen. Steps to remove the meta box … Read more

Add Meta box Befoure Post Title

The only real chance you got is to hook into admin_notices, which is above the post-new.php page title & icon: function wpse27700_above_title_content() { ?> <style> /* You might need to attach some styles here, to not get into the admin notices styles */ </style> <h1>TEST</h1> <p>This is a test message</p> <?php } // This is … Read more

inside a metabox

It’s not the right approach, since you are in a post(cpt) edit page the metabox’s are simple grouped fields that get attached to the post form and in your case it’s actually the browser who is filtering your metabox’s form attributes and not WordPress since you are creating nested forms which is something that you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)