Anchors in WordPress not followed/ indexed in sitemap.xml

Have anchor tags on a WordPress page about 300 on a page which are not listed in sitemap.xml, these links are generated dynamically. How do I index these?

Structure: A navigation link say Games when clicked --> Opens List of Games (Football, Basketball etc.) when clicked Football it opens --> Different versions of the games.

These are not listed in the sitemap.xml when created from online sitemap generators.

When clicked them manually in pages they open but doesn't appear in sitemap.

Any help would be great. Thanks!

Topic google-xml-sitemaps nofollow seo Wordpress

Category Web


Google does not index anchor tags, only URLs. (Note that by anchor tags, I assume you mean a URL like site.com/page.html#anchor)

The solution is to create a separate, static URL that displays the same content as what you would get with the anchor tag - for instance site.com/page-anchor.html.

Then you can just create a page with links to all these new URLs, and Google will follow those links nearly as efficiently as with a sitemap file. Or manually edit a sitemap.xml file and upload it to your server for Google to index.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.