Saving a Custom Post Type with a Meta Box results in a “Updating Failed” error

I changed your code and its now working fine in my pc. here is the code <?php function declare_custom_post_type() { $theme_name=”thatannalam”; $custom_post_type=”favourites”; $labels = array( ‘name’ => __(‘Favourites’, $theme_name), ‘singular_name’ => __(‘Favourite’, $theme_name), ‘add_new’ => __( ‘Add New Favourite’ ), ‘add_new_item’ => __( ‘Add New Favourite’ ), ‘edit_item’ => __( ‘Edit Favourite’ ), ‘new_item’ => … Read more

Template for Custom Post for the EDITOR

You can add custom CSS to the WordPress Admin by creating a new CSS file in your theme called admin.css (for example), and load it in the admin area by adding the following to your theme’s functions.php file: // Update CSS within in Admin function admin_style() { wp_enqueue_style(‘admin-styles’, get_template_directory_uri().’/admin.css’); } `add_action(‘admin_enqueue_scripts’, ‘admin_style’);` (pulled from this … Read more