Altering the 'Organizers' Name & Slug?

Home Forums Calendar Products Events Calendar PRO Altering the 'Organizers' Name & Slug?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #952285
    Mark
    Participant

    As above, is there a recommended way to do this without hackery? 🙂

    #952403
    Brian
    Member

    Hi,

    Thanks for using our plugins. I can help point you in the right direction here.

    To change the name Organizer you can follow this guide: (just use organizer instead of event)

    https://theeventscalendar.com/knowledgebase/changing-the-word-events-to-something-else/

    The slug is a bit trickier, this thread outlines the start of it:

    Change Local/Organizer slug + error

    But as Barry mentions it is beyond the support we can give to walk through using that function.

    Let me know if you have any follow up questions.

    Thanks

    #958354
    Mark
    Participant

    Solved with adding actions to my functions.php, here is the code for anyone else’s reference coming up against this.

    function ea_cooks_label_singular() {
    	return 'Cook';
    }
    add_action('tribe_organizer_label_singular','ea_cooks_label_singular');
    
    function ea_cooks_label_plural() {
    	return 'Cooks';
    }
    add_action('tribe_organizer_label_plural','ea_cooks_label_plural');

    I also needed an archive page, so:

    function ea_add_cooks_archive( $post_type_args ) {
    	$post_type_args['has_archive'] = true;
    	return $post_type_args;
    }
    add_filter( 'tribe_events_register_organizer_type_args', 'ea_add_cooks_archive', 10, 1 );
    #958355
    Mark
    Participant

    Oh, and don’t forget to flush permalinks afterwards! (Settings -> Permalinks -> Save)

    #958431
    Brian
    Member

    Great thanks for sharing.

    I put the going into a gist to share as well:

    https://gist.github.com/jesseeproductions/fcd388b1b9f1e634292b

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Altering the 'Organizers' Name & Slug?’ is closed to new replies.