Display additional info in admin view

Home Forums Calendar Products Events Calendar PRO Display additional info in admin view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25380
    Achim
    Member

    Hi,
    I would like to display additional infos in the admin view. Is it possible to use a hook or filter to create a new column ?

    Regards

    Achim

    #25381
    Achim
    Member

    I forgot to say that the info I want do display is stored in wp custom fields

    Regards

    Achim

    #25673
    Barry
    Member

    Hi Achim.

    I’ve no doubt you could do this however because it is a fairly advanced topic I don’t think it’s something we can help you with – realistically you would need some solid PHP and WordPress development skills to do this.

    If you get something together though it would be great if you could post back and share with the community 🙂

    Thanks!

    #25783
    Achim
    Member

    Hi Barry,

    actually, it isn’t hard to do 😉
    I used the following code in my functions.php:

    // Setup additional column :
    add_filter(‘manage_edit-tribe_events_columns’, ‘add_new_events_columns’);
    function add_new_events_columns($columns) {
    if (!isset($columns[‘note’]))
    $columns[‘column_name’] = “Column Name”;
    return $columns;
    }

    // Fill column with data:
    add_action( ‘manage_tribe_events_posts_custom_column’, ‘fill_new_events_column’, 10, 2);
    function fill_new_events_column($column_name, $post_id)
    {
    switch($column_name)
    {
    case ‘column_name’:
    // Logic to display post ‘Beschreibung’ field information here.
    $column = // assign your value here, I pulled information from a custom field
    if ($column) echo $column;
    break;
    default:
    break;
    }
    }

    Regards

    Achim

    #25786
    Barry
    Member

    Thanks for sharing Achim 🙂

    #977858
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Display additional info in admin view’ is closed to new replies.