Wordpress Color Picker Plugin

This plugin adds Color Picker meta boxes to your page/post write/edit panels. After the color is selected and post/page is saved, it creates a custom field named ‘colorpicker’. The colorpicker value can be retrieved in the theme using

<?php get_post_meta($post->ID,'colorpicker',true); ?>

This can be used to assign background-colors, text color, title heading color etc to individual post and pages.

Wordpress Color Picker plugin is using javascript color picker from http://jscolor.com/

Installation

1. Upload the Post Shift plugin to your wordpress plugins folder.
2. Activate it.
3. Goto Page/Post write panel. At bottom, select your color.
4. Retrieve the color in your theme using <?php get_post_meta($post->ID,'colorpicker',true); ?>

Download

Wordpress Color Picker Plugin

11 Responses to “Wordpress Color Picker Plugin”

  1. Gadget Newz says:

    [...] Wordpress Color Picker Plugin | Muhammad Ijlal Hasnain [...]

  2. [...] WordPress Color Picker [...]

  3. 29Undergrounder says:

    Failed to install.

  4. nutaryuk says:

    Where should i put the code ” ID,’colorpicker’,true); ?> ” in my theme ?

    • dandy says:

      You will have to use Wordpress custom fields for that. The plugin creates a custom field ‘colorpicker’, that you can use in theme for any purposes

      like

      http://www.kriesi.at/archives/how-to-use-wordpress-custom-fields

      Thanks.

  5. Alex says:

    It is pitty, but after activating ColorPicker and selecting color in post editor, wordpress’s dashboard don’t load as usual, white screen instead.

Leave a Reply

Follow Ijlal Hasnain on Twitter