Home › Forums › Calendar Products › Events Calendar PRO › How do you customize the backend organizer or venue listings?
- This topic has 6 replies, 4 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
October 25, 2013 at 4:29 am #72906danieldekayParticipant
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.
October 25, 2013 at 5:17 am #72908danieldekayParticipantI 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?
October 25, 2013 at 6:23 am #72917BarryMemberHi 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 🙂
October 26, 2013 at 3:34 am #73063danieldekayParticipantIt might be general – but a short code snippet in your forum or documentation would be really helpful to many, I believe!
October 26, 2013 at 5:54 am #73068BarryMemberWell, 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!
June 18, 2014 at 8:26 am #233272wortParticipantHi 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 WORTJuly 7, 2015 at 6:30 am #983336Support DroidKeymasterThis 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. -
AuthorPosts
- The topic ‘How do you customize the backend organizer or venue listings?’ is closed to new replies.