admin管理员组

文章数量:1306126

I'm trying to fix the broken page problem, I found that there are some issues with the permalink of these broken pages. The slug of these pages has the same numbers as the one in the middle of the link below:

/

Code in functions.php:

$args = array( 
        'labels' => $labels,
        'hierarchical' => true,
        
        'supports' => array( 'title', 'editor', 'excerpt', 'tag', 'thumbnail'),
        'public' => true,
        'show_ui' => true,
        'show_in_menu' => true,
        
        
        'show_in_nav_menus' => true,
        'publicly_queryable' => true,
        'exclude_from_search' => false,
        'has_archive' => false,
        'query_var' => true,
        'can_export' => true,
        'taxonomies' => array( 'post_tag' ),
        
        'rewrite' => array('slug'=>'product','with_front'=>false),
        'capability_type' => 'post'
    );

本文标签: WordPress permalinkslug with numbers in the middle of the post name shows the broken page