• Resolved Pierre236

    (@pierreto)


    Hi,

    When I want create sitemap for the articles on news with Rankmath, the plugin create news sitemap, with same address like news sitemap for Google.

    It is possible to, not change url with news, but the name for the sitemap?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    Thanks for reaching out here…

    I have not understood your point so please explain in more detail and please explain with some screenshots.

    Can you please share your website link so we will better understand?

    Thanks,

    Thread Starter Pierre236

    (@pierreto)

    Hi Ketan,

    Your plugin create link with /news/ like that;
    mywebsite.com/news/article/

    And when I ask rankmath to create sitemap for the news, he made sitemap with this address:

    mywebsite.com/news-sitemap.xml

    This is the same address as the news sitemap used to indicate new articles to Google :
    https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap

    Plugin Contributor Ketan Patel

    (@patelketan)

    Hello,

    Thanks for reaching out here…

    Actually, you want to change our plugin news slug because I think your same news slug issue.

    Please go to your active theme function.php file and add the below code to your theme function.php file.

    function wpnw_modify_news_post_slug( $slug ){
            $slug = 'all-your-slug'; // Write your desired slug
            return $slug;
    }
    add_filter( 'wpnw_news_post_slug', 'wpnw_modify_news_post_slug' );

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem wrong news sitemap’ is closed to new replies.