Directory name update causes 404 errors

Home Forums Calendar Products Events Calendar PRO Directory name update causes 404 errors

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1110359
    Sandra Resnick
    Participant

    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

    #1110628
    Nico
    Member

    Hey 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,
    Nico

    #1110795
    Sandra Resnick
    Participant

    Added the code, still having issues

    Please take a look here:

    All Bands

    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

    #1110924
    Nico
    Member

    Thanks 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,
    Nico

    #1117078
    Support Droid
    Keymaster

    This 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Directory name update causes 404 errors’ is closed to new replies.