archives - google index an Post type page I do not want

admin2025-06-05  0

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

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749056337a315981.html

最新回复(0)