=== Codepress Admin Columns === Contributors: codepress, tschutter, davidmosterd Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZDZRSYLQ4Z76J Tags: plugins, wordpress, admin, column, columns, custom columns, custom fields, image, dashboard, sortable, filters, posts, media, users, pages, posttypes, manage columns, wp-admin Requires at least: 3.5 Tested up to: 3.6 Stable tag: 2.0.2 Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface. == Description == Completely customise the columns on the administration screens with a nice drag and drop interface. By default, WordPress only shows a few built-in columns. This plugin will give you many additional columns. You will have full control over all columns for pages, posts, posttypes, media, links, comments and users. Add or remove columns, change their label, change their width and reorder them. = Post Types Columns = The following custom columns are added: * Featured Image * Excerpt * Post Attachments * Page Order * Page Templates * Post Formats * Taxonomies * ID * Slug * Sticky * Word count * Roles * Status * Number of Attachments * Last Modified * Comment count * Before More Tag Content * Custom Fields = User Columns = You can also change the User Columns. The following user columns are added: * User ID * First name * Last name * Url * Register date * Biographical Info ( description ) * Number of Posts Types * User Custom Fields Some of the user custom fields that are included: user level, capabilities, admin color, nickname... many more. = Media Columns = Customise the Media Library Columns. The following media columns are added: * Media ID * File name * Height * Width * Dimensions ( width x height ) * EXIF and IPTC image data * Description, Caption and Alternate tekst * Mime-Type * Media Custom Fields * Filesize = Comment Columns = A lot more comment colums are added, here are a few examples: * Avatar * Author IP * Agent * ID * Comment excerpt * Comment Meta data = Link Columns = A few examples of added Link columns: * ID * Target * Description * Notes * Owner = Custom Fields = With the custom field column you can display any custom field values. It can show its default value but also handle it as an image or icon. Thsese types are added: * Image thumbnails * Icons for Media Library items * Excerpt * Multiple Values * Numeric value ( this also works for sorting by meta_value_num ) * Post Titles * Usernames * Checkmark Image ( for true or false values ) = Sortable Custom Columns for all Screens = All of the new columns will have support for sorting with the sorting addon. By default WordPress let's you only sort by Title, Date, Comments and Author. This will make you be able to sort by ALL columns of ANY type. (columns that are added by other plugins are not supported) = Third party plugin support = It will work nice with other plugins and support their additional custom columns. A few examples of plugins that are supported: WordPress SEO by Yoast (Robots Meta), Post Admin Shortcuts (Pin), WP Show IDs (ID) and User Access Manager (Access), Co-Authors Plus and Advanced Custom Fields. = Translations = If you like to contrinute a language, please use Transifex. * Swedish (sv_SE) - Thanks to Fredrik Andersson * Danish (da_DK) - Thanks to Morten Dalgaard Johansen * German (de_DE) - Thanks to Uli * Polish (pl_PL) - Thanks to Bartosz * French (fr_FR) - Thanks to Alexandre Girard = Upcoming releases = * We will post the upcoming features on our website. **Feedback** You can leave any requests or feedback. **Related Links:** * http://www.codepresshq.com/wordpress-plugins/admin-columns/ == Installation == 1. Upload codepress-admin-columns to the /wp-content/plugins/ directory 2. Activate Codepress Admin Columns through the 'Plugins' menu in WordPress 3. Configure the plugin by going to the Admin Column settings that appears under the Settings menu. == Frequently Asked Questions == = I have an idea for a great way to improve this plugin = Great! I'd love to hear from you. Leave your feedback at http://www.codepress.nl/plugins/codepress-admin-columns/feedback. = How can I change the thumbnail size of images? = You can select a custom size for your custom field option from the Column options. **my columns thumbnails still have the wrong size** If you want your already uploaded images to display the newly added size you will need to regenerate the thumbnail for them. Use this plugin to generate the newly added sized thumbnails: http://wordpress.org/extend/plugins/regenerate-thumbnails/. = How can I enable the use of Hidden Custom Fields? = Go to settings tab and select the option to "show hidden custom fields". This will enable you to select your HIDDEN custom fields in de dropdown menu under "Custom Field:". = How can I display a custom value in the Custom Fields Column? = With this filter 'cac/column/meta/value' you can control what the value will be for any Custom Field Column. Filter explained: * **$value** is the original value which would otherwise be displayed * **$id** will return the ID of the object. * **$cac** will return the Admin Columns Storage object. * * **$cac->options->field** is the name of your custom field * **$cac->storage_model->key** will return either the posttype or if it is any other type it will return wp-comments, wp-links, wp-users, wp-media. For example if you have a custom posttype 'demo' with a custom_field that is called 'city' and the result would be an integer '33'. You can change that integer '33' to Amsterdam. ` storage_model->key && $cac->options->field == $custom_field ) { if ( '33' == $value ) $value = 'Amsterdam'; elseif ( '34' == $value ) $value = 'New York'; } return $value; } add_filter( 'cac/column/meta/value', 'my_custom_field_value', 10, 5 ); ?> ` == Screenshots == 1. Settings page for Post(type) columns. 2. Posts Screen with the customized sortable columns. 3. Settings page for the Media Library columns. 4. Media Screen with the customized sortable columns. 5. Settings page for Users columns. 6. Users Screen with the customized sortable columns. 7. Settings page showing the different displaying types for custom field. 8. Posts Screen with custom fields. == Changelog == = 2.0.2 = * [Fixed] Performance issue * [Added] Option to show/hide edit-button * [Fixed] Bug before/after-field not saving correctly * [Fixed] Bug with storage model trying to load repository (svn) files * [Fixed] Bug with tooltip * [Fixed] Bug with duplicate message in javascript * [Added] RTL support - thanks to Hassan * [Added] Arabic translation - thanks to Hassan = 2.0.1 = * [Fixed] Bug which caused columns to not include properly = 2.0.0 = * [Notice] Database needs an update, make sure to backup first * [Changed] Sortorder licence is now an Pro Add-on * [Changed] Some filters and hooks have been changed, see online documentation * [Updated] Extensive refactoring of the code with improved API * [Updated] New UI with responsive design * [Updated] Hooks and filters has been replaced with one that follows the correct naming conventions with underscores. * [Updated] Columns menu will only display posttypes which have show_ui set to true * [Updated] Admin Columns will have a tabbed settings panel * [Added] Added settings page. * [Added] Added import/export capabilities * [Added] Column: Available_Sizes for media * [Added] Default sorting for Users, Comments, Media * [Added] Column: Parent for posts * [Added] Set your own excerpt length per column * [Added] Set your own image size per column * [Added] Restore settings per type * [Added] Column support for WooCommerce * [Added] Support for image headings by other plugin columns * [Added] Added edit/view-button for easy switching between overview screen and admin columns * [Added] Added capability manage_admin_columns to control which roles can set columns * [Removed] Column: Actions for comments * [Removed] Calling get_column_headers() interfered with storing columns * [Fixed] Issue: Sorting was not working when label contains the ':' character * [Addon] Added Pro add-on * [Addon] Pro add-on includes Sorting, Filtering and Import/Export = 1.4.9 = * fixed bug: thirdparty columns that were previous loaded through load-edit.php will now use do_action( 'cpac-get-default-columns-{$type}' ) = 1.4.8 = * [Fixed] Issue: removed acf posttype placed by Advaced Custom Fields from settings menu * [Fixed] Issue: removed bbPress posttypes topic, forum and reply from admin columns settings menu * [Fixed] Issue: license key could not activate properly = 1.4.7 = * [Upated] Ready for WP 3.5 * [Added] support for custom fields for Media * [Added] color to the custom field types * [Fixed] default sorting for Post(types) and Media * [Fixed] problem with different date formats in custom fields. all dates will parsed by strtotime() now. * [Fixed] Issue: which could trigger a conflict when saving the setting on other plugins * [Fixed] Issue: when returning an admin class atrribute * [Improved] Perfomance on post count on user overview screen = 1.4.6.4 = * [Added] 'before more tag' column, which will show the content which is placed before the more-tag * [Fixed] Issue: file images will now also be displayed when they can not be resized. * [Fixed] Issue: the checkbox disappeared when resetting columns and resaving them. = 1.4.6.3 = * [Added] new custom field type: User by User ID * [Added] values to filter 'cpac_get_column_value_custom_field' for better control of the output * [Added] an example for above filter to FAQ section * [Fixed] Issue: where trash posts did not show with the sorting addon activated = 1.4.6.2 = * [Fixed] Issue: with a static function which could cause an error in some cases * [Added] filter to enable taxonomy filtering. add this to your functions.php to enable taxonomy filtering: `add_filter( 'cpac-remove-filtering-columns', '__return_false' );` = 1.4.6.1 = * [Fixed] Issue: for possible warning when using Custompress ( props to scottsalisbury for the fix! ) * [Fixed] Issue: for sorting by postcount for users * [Added] 'Display Author As' column for post(types) * [Added] sorting support for 'Display Author As' column = 1.4.6 = * [Added] german language ( thanks to Uli ) * [Added] danish language ( thanks to Morten Dalgaard Johansen ) * [Added] filter for setting thumbnail size ( see FAQ on how to use it ) * [Added] support for hidden custom fields ( see FAQ on how to enable this ) * [Fixed] Issue: for WordPress SEO by Yoast Columns = 1.4.5.1 = * [Removed] taxonomy filtering ( will implement show/hide option ) = 1.4.5 = * [Added] french language ( thanks to Alexandre Girard ) * [Added] filtering by taxonomy ( only displays when column is used ) * [Added] compatibility with woocommerce * [Added] Actions column for Media (delete, view etc.) * [Added] Actions column for Link (delete, view etc.) * [Added] Actions column for Comments (delete, view etc.) * [Added] Wordcount column for Comments * [Added] Filesize column for Media ( supports sorting ) * [Added] default sorting for posts ( remembers your last sorting, only with addon ) * [Added] default sorting for media ( remembers your last sorting, only with addon ) * [Added] filters to the result output * [Fixed] Issue: value media meta column ID * [Fixed] Issue: with sorting users by postcount = 1.4.4 = * [Added] posts columns Last Modified and Comment count * [Added] media columns for EXIF and IPTC image data * [Added] custom fields columns to the Media Library * [Improved] given column values it's own class * [Added] bug fix for sorting bookmarks/links * [Fixed] possible php warning = 1.4.3 = * [Removed] taxonomy filtering = 1.4.2 = * [Fixed] Issue: for unexpected output in the column value * [Fixed] Issue: for better 3rd party plugin support * [Added] column for Comment status * [Added] column for Ping/Trackback status * [Added] column for Posts Actions (delete, view etc.) * [Added] column for Users Actions (delete, view etc.) * [Added] sorting taxonomies ( only on first one ) * [Fixed] Issue: fix for sorting * [Added] taxonomy filtering = 1.4.1 = * [Added] polish translation, thanks to Bartosz. * [Upated] the license key validation proces to be complaint with WP rules * [Removed] non-breaking-space-character from column output = 1.4 = * [Added] support for comment columns * [Added] support for link columns * [Added] links to taxonomies * [Added] sorting user custom fields * [Added] sorting to links columns * [Added] user columns so you can see how many articles an author has published of a certain post type * [Added] Textual help * [Added] the option to specify column width * [Added] role column to all posts screens * [Added] posts status column to all posts screens * [Added] image path to media library * [Added] added apply_filters('cpac-get-post-types', $post_types) to filter out certain post types * [Added] option to enter license key for activating sorting on ALL columns * [Fixed] Issue: a php5 warning * [Fixed] Issue: a conflict with the Co-Authors plugin = 1.3 = * [Added] support for Media columns * [Added] Media columns: filename, width, height, dimensions, description, alt, caption and mime-type * [Added] date type to posts custom fields * [Added] title type to posts custom fields * [Improved] sorting has changed. when sorting; only results are shown which contain a value * [Improved] str_word_count is used for excerpts = 1.2.1 = * [Added] word count sorting * [Added] attachment count sorting * [Added] template name sorting * [Improved] styling changes * [Fixed] Issue: with sorting by slug * [Fixed] Issue: with sorting by attachment = 1.2 = * [Added] support for third party plugins * [Added] user custom fields * [Added] extra image check * [Fixed] Issue: with javascript (jquery) enqueue = 1.1.3 = * [Fixed] Issue: for WP3.3beta = 1.1.2 = * [Added] dutch translation = 1.1.1 = * [Fixed] Issue: path separator for require_once * [Added] word count column = 1.1 = * [Added] User Columns. * [Added] before / after text for custom fields * [Added] custom field type 'Numeric'. * [Added] custom field sortables. * [Fixed] domain path * [Fixed] settings link = 1.0 = * Initial release.