WordPress.org

Ready to get started?Download WordPress

Forums

Pods - Custom Content Types and Fields
[resolved] Customising list view of a Pod (6 posts)

  1. mondocongo
    Member
    Posted 1 year ago #

    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/

  2. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. mondocongo
    Member
    Posted 1 year ago #

    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.

  4. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. mondocongo
    Member
    Posted 1 year ago #

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

    Thanks for the quick replies :-)

  6. Scott Kingsley Clark
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags