Home › Forums › Calendar Products › Events Calendar PRO › Archive for Organizers
- This topic has 4 replies, 2 voices, and was last updated 10 years, 5 months ago by
Nico.
-
AuthorPosts
-
December 2, 2015 at 1:44 am #1033608
Daan Blom
ParticipantHi,
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!
December 2, 2015 at 8:48 am #1033902Nico
MemberHowdy 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,
NicoDecember 2, 2015 at 11:59 pm #1034315Daan Blom
ParticipantI 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?
December 3, 2015 at 12:26 am #1034319Daan Blom
ParticipantOh, patience does the trick π
December 3, 2015 at 10:02 am #1034834Nico
MemberHey 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 -
AuthorPosts
- The topic ‘Archive for Organizers’ is closed to new replies.
