admin管理员组

文章数量:1130349

I created a Custom Post type for my client's site, and everything works fine. but, I found that google index an archive page that I do not want. here is the code of my Post Type:

    $apres_repas_options = array(
    'labels' => $apres_repas_labels, // array of : name , singular_name ......
    'description' => 'Holds our Après repas and pizza specific data',
    'public' => true,
    'menu_icon' => dirname(plugin_dir_url(__FILE__)).'/assets/images/after-meal.png',
    'supports' => array('title', 'excerpt', 'thumbnail'),
    'has_archive' => true,
    'rewrite' => array(
        'slug' => 'apres-repas'
    )
);

and this the URL that google index and i don't want :Pizza Halal à Vauréal

thank your for your helps

I created a Custom Post type for my client's site, and everything works fine. but, I found that google index an archive page that I do not want. here is the code of my Post Type:

    $apres_repas_options = array(
    'labels' => $apres_repas_labels, // array of : name , singular_name ......
    'description' => 'Holds our Après repas and pizza specific data',
    'public' => true,
    'menu_icon' => dirname(plugin_dir_url(__FILE__)).'/assets/images/after-meal.png',
    'supports' => array('title', 'excerpt', 'thumbnail'),
    'has_archive' => true,
    'rewrite' => array(
        'slug' => 'apres-repas'
    )
);

and this the URL that google index and i don't want :Pizza Halal à Vauréal

thank your for your helps

本文标签: archivesgoogle index an Post type page I do not want