# Venue Column in the Events Admin List

> Adds a Venue column to Events in the dashboard, so you can see where each event takes place without opening it.

- Type: PHP
- Runs: Admin only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: events-calendar, admin-columns, venues
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/tec-venue-admin-column/

## Code

```php
add_filter( 'manage_tribe_events_posts_columns', function ( $columns ) {
    $columns['wpide_venue'] = __( 'Venue' );

    return $columns;
}, 20 );

add_action( 'manage_tribe_events_posts_custom_column', function ( $column, $post_id ) {
    if ( 'wpide_venue' !== $column ) {
        return;
    }

    $venue_id = (int) get_post_meta( $post_id, '_EventVenueID', true );

    if ( ! $venue_id ) {
        echo '&mdash;';
        return;
    }

    static $primed = false;
    if ( ! $primed ) {
        global $wp_query;
        $ids = array();
        foreach ( (array) $wp_query->posts as $p ) {
            $ids[] = (int) get_post_meta( is_object( $p ) ? $p->ID : (int) $p, '_EventVenueID', true );
        }
        _prime_post_caches( array_filter( array_unique( $ids ) ), false, false );
        $primed = true;
    }

    $venue = get_post( $venue_id );
    $city  = get_post_meta( $venue_id, '_VenueCity', true );

    if ( $venue ) {
        printf( '<a href="%1$s">%2$s</a>%3$s', esc_url( (string) get_edit_post_link( $venue_id ) ), esc_html( $venue->post_title ), $city ? '<br><small>' . esc_html( $city ) . '</small>' : '' );
    }
}, 10, 2 );
```

## Notes

Venue names are loaded in one query for the whole page.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Venue Column in the Events Admin List" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
