Home › Forums › Calendar Products › Events Calendar PRO › Directory name update causes 404 errors
- This topic has 4 replies, 3 voices, and was last updated 7 years, 11 months ago by Support Droid.
-
AuthorPosts
-
May 4, 2016 at 4:08 am #1110359Sandra ResnickParticipant
Per https://theeventscalendar.com/knowledgebase/relabeling-the-venue-organizer-sections-in-event-meta/
Changed “organizer” to band
Works great *but*
All existing ‘organizer’ pages basically 404 now that the sub directory has changed to ‘band’ — the pages *do* still exist at /organizer/
How can I globally update pages so that I can reference them correctly?
Thank you
May 4, 2016 at 11:39 am #1110628NicoMemberHey Grant,
Thanks for reaching out! I’ll help you getting the URLs right 🙂
The following snippet changes the organizer slug, just past it in your functions.php file:
/**
* Change organizer slug
*/
function tribe_modify_organizer_slug ( $args ) {
$args['rewrite']['slug'] = 'bands';
return $args;
}add_filter( 'tribe_events_register_organizer_type_args', 'tribe_modify_organizer_slug');
Please give this a try and let me know about it,
Best,
NicoMay 4, 2016 at 7:23 pm #1110795Sandra ResnickParticipantAdded the code, still having issues
Please take a look here:
Clicking on a band takes the user to (e.g.)
http://www.bandsnearme.com/bands/24seven/ = 404
Replacing with organizer
http://www.bandsnearme.com/organizer/24seven/ = works
In admin the slugs are created (when a new band is created) as ‘bands’ but also results in a 404 when viewed
Any help appreciated
May 5, 2016 at 5:04 am #1110924NicoMemberThanks for following up Grant!
I forgot to mention you need to flush permalinks after adding the snippet – my bad!
To do so just go to WP-Admin > Settings > Permalinks > Save Changes.
Best,
NicoMay 20, 2016 at 9:35 am #1117078Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Directory name update causes 404 errors’ is closed to new replies.