Post status Generator

Home » WordPress Generators » Post status Generator

A WordPress post status generator is an indispensable tool for bloggers and content creators who want to manage their posts more efficiently. With this plugin, you can create custom post statuses to keep track of your work in progress, pending drafts, or posts that require editing. You can also assign colours to different post statuses…

Post Status Generator FAQs

What are the Post_status options in WordPress?

In WordPress, there are several post status options available that indicate the current status of a post or page. These statuses are used to manage and organise content on a website. The default post statuses in WordPress include:
Published: Indicates that a post or page is live and visible to the public.
Draft: Indicates that a post or page is in progress and has not yet been published.
Pending: Indicates that a post or page has been submitted for review and is awaiting approval.
Private: Indicates that a post or page is only visible to users who have the appropriate permissions.
Trash: Indicates that a post or page has been deleted and is awaiting permanent removal.

There are also custom post status options that can be created using plugins or custom code to suit specific needs. These additional status options can be used to better organise and manage content on a WordPress website.

How do I change a post status to draft in WordPress?

To change a published post status to draft in WordPress, follow these simple steps:

1. Log in to your WordPress dashboard and go to the Posts screen.
2. Locate the post you want to change the status for and hover your mouse over its title. This will reveal some action links below the title.
3. Click the “Quick Edit” link. This will open up a quick edit section for the post.
4. Find the “Status” option in the quick edit section and change it from “Published” to “Draft”.
5. Click the “Update” button to save the changes.

Alternatively, you can change the status of a post by opening it for editing and clicking the “Edit” button next to the “Status” option in the “Publish” meta box. Select “Draft” from the dropdown menu and click “Update” to save the changes.

That’s it! Your post status has been changed to draft and it will no longer be visible to the public on your website.

How do I add a post status in WordPress?

To add a custom post status in WordPress, you can use a plugin or add code to your website’s functions.php file. Here’s how to do it:

Using a plugin:
a. Install and activate the “Register Post Status” plugin from the WordPress plugin repository.
b. Go to Settings > Post Statuses in the WordPress dashboard.
c. Enter the name, slug, label, and description for the new post status you want to create.
d. Click the “Add New Post Status” button to save the new status.

Adding code to functions.php:
1. Open your website’s functions.php file (usually located in your theme’s folder).
2. Add the following code to register a new post status:

function custom_post_status() {
    register_post_status( 'custom', array(
        'label'                     => _x( 'Custom', 'post' ),
        'public'                    => true,
        'exclude_from_search'       => false,
        'show_in_admin_all_list'    => true,
        'show_in_admin_status_list' => true,
        'label_count'               => _n_noop( 'Custom (%s)', 'Custom (%s)' )
    ) );
}
add_action( 'init', 'custom_post_status' );


3. Replace “custom” with the slug of the post status you want to create, and update the label and other parameters as desired.
4. Save the functions.php file.

That’s it! You have now added a custom post status to your WordPress website. You can now use this post status to manage and organise your content as needed.

How do I register a post status in WordPress?

To register a custom post status in WordPress, you can add code to your website’s functions.php file. Here’s how to do it:

– Open your website’s functions.php file (usually located in your theme’s folder).
– Add the following code to register a new post status:

function register_custom_post_status() {
    register_post_status( 'custom-status', array(
        'label'                     => _x( 'Custom Status', 'post' ),
        'public'                    => true,
        'exclude_from_search'       => false,
        'show_in_admin_all_list'    => true,
        'show_in_admin_status_list' => true,
        'label_count'               => _n_noop( 'Custom Status (%s)', 'Custom Status (%s)' )
    ) );
}
add_action( 'init', 'register_custom_post_status' );


– Replace “custom-status” with a unique slug for your custom post status, and update the label and other parameters as desired.
– Save the functions.php file.

That’s it! You have now registered a custom post status in WordPress. You can now use this post status to manage and organise your content as needed. To change the status of a post to your new custom status, go to the “Status” dropdown in the “Publish” meta box while editing a post, and you should see your new status listed there as an option.

Where can I learn more about Post Status?

You can visit the official WordPress developer website to learn more about Post Status.

Register an account to save your snippets or go Pro to get more features.