How do you customize the backend organizer or venue listings?

Home Forums Calendar Products Events Calendar PRO How do you customize the backend organizer or venue listings?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #72906
    danieldekay
    Participant

    I’dlike to add more details to the listing of organizers at /wp-admin/edit.php?post_type=tribe_organizer – and I suppose I can do something in functions.php, but I don’t know where I find out the exact field names to do so.

    #72908
    danieldekay
    Participant

    I tried function add_organizer_columns($columns) {
    return array_merge($columns,
    array(‘author’ => __(‘Author’),
    ‘_OrganizerEmail’ => __(‘Email’),
    ‘_OrganizerWebsite’ => __(‘WWW’),
    ‘_OrganizerPhone’ =>__( ‘Phone’)));
    }
    add_filter(‘manage_tribe_organizer_posts_columns’ , ‘add_organizer_columns’);

    but it doesn’t add content to the new columns. why?

    #72917
    Barry
    Member

    Hi Daniel,

    It’s essentially the same process as if you were working with any other WP List Table (such as for posts or pages) – however this is really a general WP development question / custom dev question and I’m afraid it’s not possible for us to provide support for that kind of query.

    We do wish you luck though – always great to see interesting additions being built 🙂

    #73063
    danieldekay
    Participant

    It might be general – but a short code snippet in your forum or documentation would be really helpful to many, I believe!

    #73068
    Barry
    Member

    Well, we certainly do have a number of further tutorials planned, some of which might encompass an example of this sort of thing – but right now I’m afraid we don’t have anything that I’m aware of – so it would be better to search the interwebs and see what you can come up with.

    Since we can’t do much more here I’ll go ahead and close this thread.

    Good luck!

    #233272
    wort
    Participant

    Hi Daniel, here is how I did it:

    function add_calendar_venue_columns($columns) {
    	return array_merge($columns,
    	array(
    		'_VenueAddress' => __('Address'),
    		'_VenueCity' => __('City'),
    		'_VenueState' =>__('State'),
    		'_VenueZip' =>__('Zip'),
    		'_VenuePhone' =>__('Phone'),
    		'_VenueURL' =>__('URL')));
    }
    add_filter('manage_tribe_venue_posts_columns' , 'add_calendar_venue_columns');
    
    add_action( 'manage_tribe_venue_posts_custom_column', 'calendar_venue_columns_content', 10, 2 );
    function calendar_venue_columns_content( $column_name, $post_id ) {
    	if ($column_name == '_VenueAddress') {
    		echo = get_post_meta($post_id, '_VenueAddress', true);
    	}
    	if ($column_name == '_VenueCity') {
    		echo get_post_meta($post_id, '_VenueCity', true);
    	}
    	if ($column_name == '_VenueState') {
    		echo get_post_meta($post_id, '_VenueState', true);
    	}
    	if ($column_name == '_VenueZip') {
    		echo get_post_meta($post_id, '_VenueZip', true);
    	}
    	if ($column_name == '_VenuePhone') {
    		echo get_post_meta($post_id, '_VenuePhone', true);
    	}
    	if ($column_name == '_VenueURL') {
    		echo get_post_meta($post_id, '_VenueURL', true);
    	}
    }
    

    Put that in your theme functions.php file. Hope that helps!
    ~Miriam at WORT

    #983336
    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 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How do you customize the backend organizer or venue listings?’ is closed to new replies.