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
版权声明:本文标题:archives - google index an Post type page I do not want 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749056313a2309399.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论