tobid

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: 404 on event detail page #812742
    tobid
    Participant

    Your are really the best Brian! It works now!!!
    Thank you so much for your help and your patience. I will honor that with recommending your great support! 🙂

    in reply to: 404 on event detail page #812520
    tobid
    Participant

    I think I come closer. With your help I have reduced the problem to one plugin. We have a self-written plugin which is using the following custom-taxonomy:
    function register_team_manager() {
    $labels = array(
    ‘name’ => ‘Team’,
    ‘singular_name’ => ‘Team-Mitglied’,
    ‘add_new’ => ‘Neues Team-Mitglied’,
    ‘add_new_item’ => ‘Hinzufügen’,
    ‘edit_item’ => ‘Team-Mitglied bearbeiten’,
    ‘new_item’ => ‘Neues Team-Mitglied’,
    ‘all_items’ => ‘Alle Team-Mitglieder’,
    ‘view_item’ => ‘Team-Mitglied anzeigen’,
    ‘search_items’ => ‘Team-Mitglied suchen’,
    ‘not_found’ => ‘Team-Mitglied nicht gefunden’,
    ‘not_found_in_trash’ => ‘Team-Mitglied nicht im Papierkorb gefunden’,
    ‘parent_item_colon’ => ”,
    ‘menu_name’ => ‘Team’,
    );

    $args = array(
    ‘labels’ => $labels,
    ‘description’ => ‘Team-Mitglieder erstellen und verwalten’,
    ‘hierarchical’ => true,
    ‘supports’ => array( ‘title’, ‘thumbnail’,’editor’),
    ‘public’ => true,
    ‘show_ui’ => true,
    ‘menu_position’ => 25,
    ‘show_in_menu’ => true,
    ‘show_in_nav_menus’ => true,
    ‘publicly_queryable’ => true,
    ‘exclude_from_search’ => true,
    ‘has_archive’ => true,
    ‘query_var’ => true,
    ‘can_export’ => true,
    ‘rewrite’ => true,
    ‘capability_type’ => ‘post’,
    ‘menu_icon’ => plugins_url( ‘../img/icon.png’,__FILE__),
    ‘has_archive’ => true,
    ‘rewrite’ => array( ‘slug’ => ‘team’ )

    );

    register_post_type( ‘team_manager’, $args );
    flush_rewrite_rules(); // renew the rewrite rules

    //register custom category for the team manager
    $labels = array(
    ‘name’ => ‘Abteilungen’,
    ‘singular_name’ => ‘Abteilung’,
    ‘search_items’ => ‘Abteilung suchen’,
    ‘popular_items’ => ‘Beliebteste Abteilungen’,
    ‘all_items’ => ‘Alle Abteilungen’,
    ‘edit_item’ => ‘Abteilung bearbeiten’,
    ‘update_item’ => ‘Abteilung aktualisieren’,
    ‘add_new_item’ => ‘Neue Abteilung’,
    ‘new_item_name’ => ‘Neuer Abteilungsname’,
    ‘separate_items_with_commas’ => ‘Abteilungen durch Komma trennen’,
    ‘add_or_remove_items’ => ‘Abteilungen hinzufügen oder entfernen’,
    ‘choose_from_most_used’ => ‘Aus den meist genutzten Abteilungen wählen’,
    ‘not_found’ => ‘Keine Abteilung gefunden’,
    ‘menu_name’ => ‘Abteilungen’,
    );

    $args = array(
    ‘hierarchical’ => true,
    ‘public’ => true,
    ‘labels’ => $labels,
    ‘show_ui’ => true,
    ‘show_admin_column’ => true,
    ‘update_count_callback’ => ‘_update_post_term_count’,
    ‘query_var’ => true,
    ‘rewrite’ => array( ‘slug’ => ‘abteilungen’),
    ‘capability_type’ => ‘post’,
    ‘has_archive’ => true
    );

    register_taxonomy( ‘team_groups’, ‘team_manager’, $args );
    }
    add_action(‘init’, ‘register_team_manager’);

    I think that this is causing a problem for the permalinks. But I don’t the the error in this code. Do you have any clue?

    in reply to: 404 on event detail page #811003
    tobid
    Participant

    Hi Brian,
    I did everything what you said.
    This is my custom permalink-structure: domain.de/%category%/%postname%/

    domain.de/new-event/ (the news single event url slug)
    domain.de/new-event/onkologische-patientenschulung/ (a event detail page)

    Now the first url doesn’t work, but the event detail page. hmmm…

    Thanks a lot

    in reply to: 404 on event detail page #801608
    tobid
    Participant

    This reply is private.

Viewing 4 posts - 1 through 4 (of 4 total)