Getting gutenberg (WordPress 5) to save TInymce data?
Getting gutenberg (WordPress 5) to save TInymce data?
Getting gutenberg (WordPress 5) to save TInymce data?
How to have meta boxes save via REST in Gutenberg?
Adding meta box without add_meta_box – is this bad?
snippet code of notification display when check notify checkbox and display message in Update and Publish post or page in admin function cabtv_add_post_options() { // Add our meta box for the “post” post type (default) $post_types = array(“post”, “page”); foreach ($post_types as $post_type) { add_meta_box(‘cabtv_notif_on_post’,’Notifications’,’cabtv_notif_on_post_html_view’,$post_type,’side’,’high’); } } add_action(‘add_meta_boxes’, ‘cabtv_add_post_options’); function cabtv_notif_on_post_html_view($post) { wp_nonce_field( ‘cabtv_notif_metabox’, ‘cabtv_notif_metabox’ … Read more
Hide Polylang metabox from the post edit sidebar
There are few problems with your code. First, The name of the select field is not the same as you are trying to save using the global variable $_POST. You are saving $_POST[‘selectId’] data but it does not exist in your meta box. You named the select field as “count” but trying to get value … Read more
How to detect if metabox content was updated by the user
Change the context of excerpt metabox for the ‘New Post’ page
The toggling boxes part is easy enough, that i can manage, but saving the status of the boxes is more tricky. JS unfortunately is not one of my strengths, and i can’t get the postboxes to save their state. That said, i can show you how to toggle groups of boxes, and adjust the checkboxes … Read more
Save each meta box out to a file with the code as if they were in your functions.php file. Maybe place these in a folder called meta_boxes. Then to include into your theme just include() them into your functions file <?php // all the code that your functions file contains include(“meta_boxes/meta1.php”); include(“meta_boxes/meta2.php”); include(“meta_boxes/meta3.php”); include(“meta_boxes/meta4.php”); // … Read more