sitemap error
-
Hello. I created a custom post type and it works fine but there is 2 error in sitemap from google webmaster tools.
Here is my custom post codes:<?php /* Add vip posts to wordpress */ function add_vip_post_type() { $labels = array( 'name' => _x( 'my text', 'post type general name' ), 'singular_name' => _x( 'my text', 'post type singular name' ), 'add_new' => _x( 'my text', 'book' ), 'add_new_item' => __( 'my text vip' ), 'edit_item' => __( 'my text' ), 'new_item' => __( 'my text' ), 'all_items' => __( 'my text' ), 'view_item' => __( 'my text' ), 'search_items' => __( '?????? ??? ??' ), 'not_found' => __( 'my text' ), 'not_found_in_trash' => __( 'my text' ), 'parent_item_colon' => '', 'menu_name' => 'my text vip' ); $args = array( 'labels' => $labels, 'description' => 'my text', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, ); register_post_type( 'vip_post', $args ); } add_action( 'init', 'add_vip_post_type' ); function category_vip_post() { $labels = array( 'name' => _x( 'my text', 'taxonomy general name' ), 'singular_name' => _x( 'my text', 'taxonomy singular name' ), 'search_items' => __( 'my text' ), 'all_items' => __( 'my text' ), 'parent_item' => __( 'my text' ), 'parent_item_colon' => __( 'my text' ), 'edit_item' => __( 'my text' ), 'update_item' => __( 'my text' ), 'add_new_item' => __( 'my text' ), 'new_item_name' => __( 'my text' ), 'menu_name' => __( 'my text' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, ); register_taxonomy( 'vip_category', 'vip_post', $args ); } add_action( 'init', 'category_vip_post', 0 ); function tag_vip_post() { $labels = array( 'name' => _x( 'my text', 'taxonomy general name' ), 'singular_name' => _x( 'my text', 'taxonomy singular name' ), 'search_items' => __( 'my text' ), 'popular_items' => __( 'my text' ), 'all_items' => __( 'my text' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'my text' ), 'update_item' => __( 'my text' ), 'add_new_item' => __( 'my text' ), 'new_item_name' => __( 'my text' ), 'separate_items_with_commas' => __( 'my text' ), 'add_or_remove_items' => __( 'my text' ), 'choose_from_most_used' => __( 'my text' ), 'menu_name' => __( 'my text' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, ); register_taxonomy( 'vip_tag', 'vip_post', $args ); } add_action( 'init', 'tag_vip_post', 0 ); ?>
And here is the links of sitemap 404 error:
https://wpyar.com/vip_category-sitemap.xml
https://wpyar.com/vip_tag-sitemap.xmlSitemap for tags and category has 404 error.
Can anyone help me to correct code?
Thank you
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘sitemap error’ is closed to new replies.