How publish post from pending status

When WordPress gives you errors such as that the post needs an author and permalink, it is best to figure out a way to provide these. Otherwise you are asking for trouble further down the line. You might find a way to force it, but it would be an uphill battle. WordPress is like a … Read more

Modify Publish Metabox location on CPT

This solution seems to work so far. add_filter(‘screen_layout_columns’, ‘one_column_on_screen_options’); function one_column_on_screen_options($columns) { $columns[‘post’] = 1; return $columns; } // Ignore user preferences stored in DB, and serve only one column layout add_filter(‘get_user_option_screen_layout_post’, ‘one_column_layout’); function one_column_layout($option) { return 1; } add_action( ‘add_meta_boxes_sliding_panel’, ‘sds_do_meta_boxes’, 0, 1 ); function sds_do_meta_boxes( $post ) { remove_meta_box( ‘submitdiv’, ‘sliding_panel’, ‘side’ ); … Read more

WordPress get tags in “publish_post” hook

if you want to get all selected tag in “publish_post” try below code. it will give you selected tag from post. remove wp_die(“all Tags”); after verify that you can get proper tags on publish post. add_action( ‘publish_post’, ‘post_published_notification’, 10, 2 ); function post_published_notification( $ID, $post ) { $all_tags = $_POST[‘tax_input’][‘post_tag’]; if ( $all_tags ) { … Read more

My posts are getting to Auto draft when I try to Publish

Can you try the following in your wp-config.php define( ‘AUTOSAVE_INTERVAL’, 3600 ); // autosave 1x per hour define( ‘WP_POST_REVISIONS’, false ); // no revisions What this would do disable auto-save and post-revisions. Try with that, if it works could be your then it could be your internet or hosting conflicts.