Adding Fields to the Organizer Page

Home Forums Welcome! Pre-Sales Questions Adding Fields to the Organizer Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #966911
    dcantato
    Participant

    Hi,

    I have been reading various threads and googling around but I can’t seem to find if it is possible to add more fields to the Organizer page. I want to have more default fields along with the email,phone, and website. The answers that I’ve read are kind of vague in this area.

    For the events pages it’s very straight forward so I’m confused why this wouldn’t be as easy.

    #967052
    Barry
    Member

    Hi there!

    You can add a snippet like this one to your theme’s functions.php file (or any other suitable location) and it should enable custom fields for organizers:

    https://gist.github.com/barryhughes/f7cce65e5aa0c5a50a64#file-org-custom-fields-php

    From there you will need to potentially tweak the single-organizer.php template (see our Themer’s Guide for details!) to expose the information in a nicely presented fashion 🙂

    Hope that helps!

    #967055
    Barry
    Member

    Apologies, for some reason the code is missing from my last post. Let’s try again…

    /**
     * Enable custom field support for organizer posts.
     * 
     * @param  array $args
     * @return array
     */
    function tribe_organizers_custom_field_support( $args ) {
    	$args['supports'][] = 'custom-fields';
    	return $args;
    }
    
    add_filter( 'tribe_events_register_organizer_type_args', 'tribe_organizers_custom_field_support' );
    #971832
    Barry
    Member

    Hi!

    It’s been a while so I’m going to go ahead and close this topic.

    • Need help with anything else? Go right ahead and post a new topic, one of the team will be only too happy to help
    • Still need help with this issue and need to re-open it? Again, please simply create a new topic and link to this one to provide the team with some context

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Adding Fields to the Organizer Page’ is closed to new replies.