Archive for Organizers

Home Forums Calendar Products Events Calendar PRO Archive for Organizers

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1033608
    Daan Blom
    Participant

    Hi,

    I would like to have an archive for organizers. I’ve found this topic but i’m not able to replicate this: https://theeventscalendar.com/support/forums/topic/archive-pages-for-venues-and-organizers/#dl_post-992311

    Is there an easier way? or does someone has some 1, 2, 3 simple steps for me to take?

    Thanks!

    #1033902
    Nico
    Member

    Howdy Daan,

    Welcome to our support forums and thanks for reaching out to us. I’ll try to help you implementing the code you linked me to.

    First of all let’s assume the coding shared by @media325 works πŸ™‚

    Just pasting this code in your theme’s functions.php (located at wp-content/themes/your_theme/functions.php) file should do the trick:

    //re-register tribe_organizer to allow for archive pages
    function update_tribe_organizer_post_type() {
    register_post_type('tribe_organizer',
    array(
    'labels' => array (
    ),
    'public' => true,
    'has_archive' => true,
    'rewrite' => array(
    'slug' => 'organizers',
    'with_front' => false,
    ),
    'supports' => array(
    'title',
    )
    )
    );
    }
    add_action( 'init', 'update_tribe_organizer_post_type');

    //re-register tribe_venue to allow for archive pages
    function update_tribe_venue_post_type() {
    register_post_type('tribe_venue',
    array(
    'labels' => array (
    ),
    'public' => true,
    'has_archive' => true,
    'rewrite' => array(
    'slug' => 'venues',
    'with_front' => false,
    ),
    'supports' => array(
    'title',
    )
    )
    );
    }
    add_action( 'init', 'update_tribe_venue_post_type');

    That should enable archives for both venues and organizers.

    Please give it a try and let me know,
    Best,
    Nico

    #1034315
    Daan Blom
    Participant

    I added this in my functions.php, translated the slug to the proper dutch word organisator, but it will not work. for now wordpress sends me to a different page /…/organisatoren which is fine, because the website is already live.

    Is there anything else I need to think about?

    #1034319
    Daan Blom
    Participant

    Oh, patience does the trick πŸ™‚

    #1034834
    Nico
    Member

    Hey Daan,

    Stocked to hear you could make this work Daan πŸ™‚

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Archive for Organizers’ is closed to new replies.