alleyinteractive/news-sitemap-for-publishers

Extends WordPress' XML sitemaps feature to add a news sitemap

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

Type:wordpress-plugin

pkg:composer/alleyinteractive/news-sitemap-for-publishers

1.2.1 2026-01-02 18:22 UTC

This package is auto-updated.

Last update: 2026-01-02 18:38:24 UTC


README

Contributors: mboynes, alleyinteractive

Tags: news, sitemap, seo, publishers, google

Stable tag: 1.2.1

Requires at least: 5.5

Tested up to: 6.9

Requires PHP: 8.2

License: GPL v2 or later

Extends WordPress's XML sitemaps feature to add a news sitemap for Google, Yahoo, Bing, et al.

Description

Extends WordPress's XML sitemaps feature to add a news sitemap. News sitemaps are used by Google and others to surface recent news articles by publishers.

Installation

You can install the package via Composer:

composer require alleyinteractive/news-sitemap-for-publishers

Usage

Activate the plugin in WordPress and flush your rewrite rules (simply navigate to Settings → Permalinks in the WordPress admin to do so).

You can verify that the plugin is working by navigating to /wp-news-sitemap.xml on your site. You should also find a new sitemap entry in your site's robots.txt file for this URL.

Development

To set up a WordPress installation and run the plugin in a local environment, you can use wp-env via the composer dev command:

composer dev

The command will start a local WordPress environment with the plugin activated.

Testing

Testing Suite

Run composer test to run tests against PHPUnit and the PHP code in the plugin. Unit testing code is written in PSR-4 format and can be found in the tests directory.

Releasing the Plugin

The plugin uses action-release via a built release workflow to compile and tag releases. Whenever a new version is detected in the root plugin's headers in the news-sitemap-for-publishers.php file or in the composer.json file, the workflow will automatically build the plugin and tag it with a new version. The built tag will contain all the required front-end assets the plugin may require. This works well for publishing to WordPress.org or for submodule-ing.

When you are ready to release a new version of the plugin, you can run composer release to start the process of setting up a new release. If you want to do this manually you can follow these steps:

  1. Change the Version in the news-sitemap-for-publishers.php file to a new higher-level version.

    - * Version: 0.0.0
    + * Version: 0.0.1
  2. Commit your changes and push to the repository.

  3. Check the actions tab in the repository to see the progress of the release. The action will automatically create a new tag and release for the plugin. You are done!

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

This project is actively maintained by Alley Interactive. Like what you see? Come work with us.

License

The GNU General Public License (GPL) license. Please see License File for more information.