alleyinteractive / wp-news-sitemap
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/wp-news-sitemap
Requires
- php: ^8.2
Requires (Dev)
This package is auto-updated.
Last update: 2026-01-02 18:38:25 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
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:
-
Change the
Versionin thenews-sitemap-for-publishers.phpfile to a new higher-level version.- * Version: 0.0.0 + * Version: 0.0.1
-
Commit your changes and push to the repository.
-
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.