Post State Tags

Description

Highlights the left border color and background color and reformats the post status as visual color tags in the wordpress admin post list view. Supports the standard WordPress status for: Published, Future, Draft, Pending, Private, Protected, Sticky (tag only) and custom statuses like Archived (via Archive Post Status plugin.

Posts/Pages Features

  • Adds a left thick border color and highlights the line with a light background color, similar to the comments and plugins admin views.
  • Modifies the post status tags added to a Page/Post name to have a tag appearance with matching background color and dashicon
  • Both these changes make it super easy to spot the various types of post statuses in the admin view
  • Supports all WordPress Post status values: Published, Future, Draft, Pending, Private, Protected, Sticky (tag only)
  • Support for custom post statuses like Archived via Archive Post Status plugin
  • Supports the 4.2 status of the Front Page and Posts Page (blog page) to easily spot those posts/pages
  • Supports the 4.3 tags of Scheduled Posts to see upcoming posts/pages
  • Define custom colors using the color picker in the Admin Settings screen
  • Define custom dash icons using the dashicons picker in the Admin Settings screen
  • Enable/disable view in Admin Settings screen
  • Enable/disable icons in Admin Settings screen
  • Reset settings to defaults in Admin Settings screen

IMPORTANT NOTE
If all your posts or pages are only published, nothing in the display will change. This plugin doesn’t add anything to regular Published posts, otherwise the screen will look way too colourful. To see the plugin in action, you will have to set at least one of your posts or pages to DRAFT, PENDING, PROTECTED, PRIVATE or any status other than published, to make it show something.

Notes

  • Icons appear inside the tag, if enabled.
  • Published status: color, no tag.
  • Scheduled status: color, with tag* (*from WordPress 4.3)
  • Protected status: overrides color, but still adds tag (multiple tags support)
  • Sticky status: tag only (multiple tags support).
  • Front Page, Blog Posts: tag only (WordPress 4.2 feature)

Acknowledgements

Screenshots

  • Screenshot sample with default colors for a variety of post types
  • Screenshot showing the new WP4.2 Front Page and Posts Page "status"
  • Screenshot showing the Settings interface where you can adjust settings like colors, icons

Installation

  1. Use the WordPress Admin Plugins installer: Search for the plugin name, and click INSTALL and click the ACTIVATE link
  2. -or- Download the ZIP: Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins admin page.
  3. Ensure you have some posts or pages that are not just published to see the default colors

FAQ

Where are the settings?

You can click the Settings link on the plugin install screen, or find it under SETTINGS: Post State Tags.

Why are there no default settings to make it look like the screenshots?

On some installations, the plugin setup doesn’t work correctly (haven’t figured that out), so the settings appears blank. Just click on the [RESET SETTINGS] button at the bottom to reset the settings, make change after and then SAVE.

Can I change colors?

Yes. In the settings admin screen, you can change the color values using the color picker. The lighter background color is automatically calculated using RGB/HSL values.

Can I change icons?

Yes. In the settings admin screen, you can pick new dash icons using the picker, or enter the dash icon class, see DashIcons.

Are there default colors and icons / How can I reset to defaults?

You can simply go to the settings and click the reset to defaults button at the bottom to reset all the colors and dash-icons to their default values.

Can I temporarily disable the plugin?

Yes. In the settings admin screen, there is a checkbox to disable the output (preserve settings).

Can I hide the little dash icons?

Yes. In the settings admin screen, there is a checkbox to disable the tag icons (if you prefer).

How do I change the light background color value

There isn’t currently a backend setting, but I added support for this in a filter hook. Here is an example to add to your functions.php file (in your theme/child theme):

function my_lightvalue( $lightvalue ) {
    // override lightvalue, default value is 0.97
    // 0.5 is equal to main color (tag becomes invisible)
    // 0.4 is darker than main color
    // 0.8 is slightly darker than default
    $lightvalue = 0.8;
  return $lightvalue;
}
add_filter( 'bb_pst_lightvalue', 'my_lightvalue', 10, 2 );

Reviews

Fantastic plugin for a better view

I like to install it to my clients for make it an easier experience for them to use their websites. It works for Woocommerce order status too, you just have to customize the colors in the settings.

This should be part of core.

Read all 5 reviews

Contributors & Developers

“Post State Tags” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Post State Tags” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.6

  • Replace admin url function in settings

1.1.5

  • Fixed installation bug where icons weren’t setup correctly (finally)
  • Flag as compatible with WordPress 4.6

1.1.4

  • Flag as compatible with WordPress 4.5

1.1.3

  • Small style fixes in the way WordPress 4.4 displays settings

1.1.2

  • Added corrected support for new inline scheduled post status, since WP 4.3

1.1.1

  • Added filter for background color light value, with example code in FAQ

1.1.0

  • Added Settings interface for: enable, icon visbility, post status color picker and dashicons picker

1.0.1

  • Modified post archive status dashicon to match icon from Archived Post Status plugin

1.0

  • First release using standard WordPress colors