Skip to content

Provides Wordpress an XML Sitemap with Google News and Image Sitemap attributes. Supports custom post types and multisite installations.

Notifications You must be signed in to change notification settings

APMG/wordpress-xml-sitemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google News and Images XML Sitemap

Contributors: pwenzel
Tags: xml, sitemap, multisite, network, custom post types
Requires at least: 3.7
Tested up to: 4.1.1
License: GPLv2 or later

Provides an XML Sitemap with Google News and Image Sitemap support. Supports custom post types and multisite installations. Includes Sitemap Index for large sites.

Description

This plugin automatically generates an XML sitemap and advertises itself to search engines in robots.txt and your page header.

It is designed to be run with no human intervention. Therefore, this plugin contains no options.

Requires at least PHP 5.3.0.

Features

Installation

  1. Install the plugin your plugins directory.
  2. Enable it from the Plugins menu. Multisite installations can use the Network Activate option.
  3. Go to Settings... Reading and and uncheck "Discourage search engines from indexing this site" from the Search Engine Visibility section.

Testing

  1. Go to /sitemap.xml or /sitemapindex.xml at your site's root
  2. Validate your sitemap at validome.org/google
  3. Submit your sitemap to Google Webmaster Tools

Unit Testing

This plugin is tested with Codeception

  1. Update codeception.yml with your blog's base URL
  2. Run codecept run

Frequently Asked Questions

What custom post types are included?

In addition to posts and pages, all custom post types you register will be included in the sitemap.

Custom post types will be excluded if their public option is false, or if exclude_from_search is true.

Attachments are excluded from the sitemap, unless they are added to a post as a Featured Image.

What sitemaps are included in robots.txt if using Wordpress Multisite?

All sites marked "public" will have their sitemap index included in robots.txt.

Sites marked "archive", "spam", or "deleted" are excluded.

What image sizes are included in the image sitemap?

It defaults to the large size, as available.

Do you use the post creation date, or the last modified date?

The lastmod attribute in your sitemap uses a post's last modified date, not the post creation date.

This ensures that search engines are aware of content changes.

I don't see a link rel-sitemap tag in my header. Why not?

Make sure your theme's template includes in the header.

About

Provides Wordpress an XML Sitemap with Google News and Image Sitemap attributes. Supports custom post types and multisite installations.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages