Hide or remove custom post status

I found the solution i was looking for, if anyone in the future has the same question i am posting the answer. To make a post with lets say “Status1” to show only “Status2” and hides other statuses like “Status3 and Status4” (with css): function hidepoststatus() { $post=”Status1″; global $post; if ( $post->post_status == ‘Status1’ … Read more

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

edit.php all post not working

finally found the solution when i enter all the custom post status to public it declare the post_type to default post as global so applied filter to change the global post_type based what type request get in URL function publishPress_allPost_pre_get_posts( &$wp_query ) { if ( is_admin() && array_key_exists( ‘post_type’, $_GET ) ) { $wp_query->set( ‘post_type’, … Read more