featured image add_theme_support( 'post-thumbnails', array('tribe_organizer') )

Home Forums Calendar Products Events Calendar PRO featured image add_theme_support( 'post-thumbnails', array('tribe_organizer') )

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1150490
    David Hager
    Participant

    How do you allow the featured image on the tribe_organizer post type. Adding add_theme_support( 'post-thumbnails', array('tribe_organizer') ); should work, but doesn’t. Is there somewhere else you are denying this field in the backend?

    Btw I don’t care about the front-end, I will figure this out myself, but I would like the default WordPress functionally to work

    #1150531
    Cliff
    Member

    Hi.

    You need to use the tribe_events_register_organizer_type_args filter, located in this file: https://github.com/moderntribe/the-events-calendar/blob/4.2.4/src/Tribe/Organizer.php#L99

    Here’s a sample how-to for enabling custom fields:

    https://gist.github.com/barryhughes/f7cce65e5aa0c5a50a64

    I’m sure you can figure it out from there for your post-thumbnails.

    Let me know if you need anything else.

    #1150838
    David Hager
    Participant

    Yes thanks this works in my function.php

    
    function tribe_organizers_custom_field_support( $args ) {
    	$args['supports'][] = 'thumbnail';
    	return $args;
    }
    
    add_filter( 'tribe_events_register_organizer_type_args', 'tribe_organizers_custom_field_support' );
    
    • This reply was modified 9 years, 8 months ago by David Hager.
    • This reply was modified 9 years, 8 months ago by David Hager.
    #1151080
    Cliff
    Member

    I’m glad that worked for you in your active theme’s functions.php file. Thanks for letting us know and sharing the code for others who may come across it in the future.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘featured image add_theme_support( 'post-thumbnails', array('tribe_organizer') )’ is closed to new replies.