How to Add Custom Post Status for Blog Posts in WordPress


How to Add Custom Post Status for Blog Posts in WordPress
Edda Battle

Do you want to add a custom post status for your blog posts in WordPress? Post status is an editorial tool that allows you to organize your articles based on their respective stages during the editorial workflow. In this article, we will show you how to easily add custom post status to blog posts in WordPress.

How to Add Custom Post Status for Blog Posts in WordPress
Courtney Page

WordPress has a known bug in the API used to register custom post statuses. It allows you to create custom post status, but you cannot use it in the admin panel. This means that the coding method can get the job done, but it is not as clean, and you will need to change it after it is officially fixed.

How To Add Custom Post Statuses In WordPress
Eileen Guerrero

Editors note: when we first came up for the idea of this post a month or so ago, it was because the free Edit Flow plugin that we previously used for managing custom post statuses hadn’t been updated in a long time. We had some issues with it and wanted to share other options. But, now Edit Flow has been updated so it should work fine, although we haven’t tested it yet – click here to learn more about Edit Flow.

How to Add a Custom Post Status to Quick Edit
Regina Guzman

Thanks! This is EXACTLY what I was looking for and seems to work for me just fine (not sure about what Jorge’s comment is regarding so maybe I missed something). By the way, I am combining this with code I found to add the custom post status to the regular edit screen as well. (ref: http://stackoverflow.com/questions/20298346/custom-post-status-not-appearing)

WordPress.org
Pat Sullivan

Thanks for suggesting a new feature for our plugin! We’re actively using the bug tracking on our GitHub repository so your best next step would be to create a new feature request for our developers at https://github.com/Yoast/wordpress-seo/issues/new. You can create a new issue to submit your feature request. You will need an account to create one.

Creating Custom Post Status in WordPress
Candice Barker

So, let’s go the custom way, creating custom post status via functions.php is quite easy or you may even bundle it as a tiny custom plugin and use it. I registered the custom post status In Writing in my theme’s functions.php. I used the WordPress action hook to call the function to register the custom post status. But, there is an issue with creating custom post status via programming, that is, the registered custom post status cannot be seen in the WordPress admin. So, while editing the post we cannot set the custom post status for the posts. I have embedded a script to add the newly registered custom post status to the post edit form status dropdown.

Be the first to comment

Leave a Reply

Your email address will not be published.


*