WordPress.org

Support

Support » Plugins and Hacks » Pods - Custom Content Types and Fields » [Resolved] Customising list view of a Pod

[Resolved] Customising list view of a Pod

  • mondocongo

    @mondocongo

    Hi,

    Is it possible to customise the columns shown in the list view for a Pod? I’ve tried using the wordpress filter like so:

    function add_provider_columns($columns) {
        unset($columns['title']);
        unset($columns['date']);
        return array_merge($columns, array(
            'provider_name' => __('Provider name'),
            'address' => __('Address'),
        ));
    }
    add_filter('manage_providers_posts_columns' , 'add_provider_columns');

    The columns appear in the list, but with empty values. Any ideas?

    http://wordpress.org/extend/plugins/pods/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    Try out the CodePress Admin Columns:

    http://wordpress.org/extend/plugins/codepress-admin-columns/

    It makes this sort of thing very easy with Pods and Post Types. Otherwise, you’ll need to use an additional filter to hook into the column values, since the filter you’re using now only adds it to the table headers.

    mondocongo

    @mondocongo

    Cheers for the info – that plugin doesn’t seem to be aware of the Pod’s fields though, it just displays the standard WP fields for each Pod.

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    Pods fields are custom fields, it only picks up fields that have been set so far. We are working through additional integration right now, there are some pending patches that I’m waiting on them committing soon.

    mondocongo

    @mondocongo

    Ok thanks – in the meantime I found the manage_{type}_posts_custom_column filter which does the trick.

    Thanks for the quick replies 🙂

    Plugin Author Scott Kingsley Clark

    @sc0ttkclark

    The patches made it into CodePress Admin Columns, we’ve got some more stuff cooking in Pods 2.3 that will do a few more tweaks and fixes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Customising list view of a Pod’ is closed to new replies.
Skip to toolbar