WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Codepress Admin Columns

Customise columns on the administration screens for post(types), pages, media, comments, links and users with an easy to use drag-and-drop interface.

Is there documentation for Admin Columns?

Yes, you will find all the documentation you need on the admincolumns.com documentation page.

I have an idea for a great way to improve this plugin

Great, we'd love to hear from you! Please leave your feature request in our forums!

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. You can use this plugin to generate the newly added sized thumbnails: http://wordpress.org/extend/plugins/regenerate-thumbnails/.

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.
  • $column will return the Admin Columns Column object.
  • $column->options->field is the name of your custom field
  • $column->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.

<?php
function my_custom_field_value( $value, $id, $column ) {

    $post_type      = 'demo';
    $custom_field   = 'city';

    // make sure we have the correct posttype and custom field
    if ( $post_type == $column->storage_model->key && $custom_field == $column->options->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, 3 );
?>

What filters and hooks can I use?

You can find a list of the available actions and filters (and examples on how to use them!) in the Admin Columns documentation.

Requires: 3.5 or higher
Compatible up to: 3.9.1
Last Updated: 2014-7-1
Downloads: 131,561

Ratings

4 stars
4.9 out of 5 stars

Support

5 of 7 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

67,3,2 50,2,1 100,1,1 100,2,2 100,2,2 100,4,4 100,2,2 100,2,2 0,1,0
100,1,1 100,2,2 100,3,3
92,12,11 100,5,5 100,3,3 100,2,2 100,1,1 100,2,2 100,2,2
100,1,1 100,8,8
100,3,3 100,1,1 100,1,1
100,6,6 100,1,1 100,7,7 100,1,1
100,2,2 92,12,11 0,1,0
100,6,6
100,12,12 100,1,1
80,5,4
100,1,1 0,1,0 100,1,1 100,8,8
100,5,5
100,1,1
100,1,1 100,3,3 100,1,1 100,1,1
100,2,2 100,7,7
100,4,4 100,2,2 100,2,2
100,1,1
100,2,2 100,1,1 100,1,1
100,5,5 100,1,1 100,1,1 100,1,1