PHPackages                             alleyinteractive/wp-news-sitemap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. alleyinteractive/wp-news-sitemap

Abandoned → [alleyinteractive/news-sitemap-for-publishers](/?search=alleyinteractive%2Fnews-sitemap-for-publishers)Wordpress-plugin[Utility &amp; Helpers](/categories/utility)

alleyinteractive/wp-news-sitemap
================================

Extends WordPress' XML sitemaps feature to add a news sitemap

1.2.2(4mo ago)00[1 PRs](https://github.com/alleyinteractive/news-sitemap-for-publishers/pulls)GPL-2.0-or-laterPHPPHP ^8.2CI failing

Since Dec 30Pushed 3mo agoCompare

[ Source](https://github.com/alleyinteractive/news-sitemap-for-publishers)[ Packagist](https://packagist.org/packages/alleyinteractive/wp-news-sitemap)[ Docs](https://github.com/alleyinteractive/news-sitemap-for-publishers)[ RSS](/packages/alleyinteractive-wp-news-sitemap/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (6)Dependencies (4)Versions (12)Used By (0)

News Sitemap for Publishers
===========================

[](#news-sitemap-for-publishers)

Contributors: mboynes, alleyinteractive

Tags: news, sitemap, seo, publishers, google

Stable tag: 1.2.2

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
-----------

[](#description)

Extends [WordPress's XML sitemaps feature](https://make.wordpress.org/core/2020/07/22/new-xml-sitemaps-functionality-in-wordpress-5-5/) to add a [news sitemap](https://developers.google.com/search/docs/crawling-indexing/sitemaps/news-sitemap). News sitemaps are used by Google and others to surface recent news articles by publishers.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require alleyinteractive/news-sitemap-for-publishers
```

Usage
-----

[](#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
-----------

[](#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)

[![Testing Suite](https://github.com/alleyinteractive/news-sitemap-for-publishers/actions/workflows/all-pr-tests.yml/badge.svg?branch=develop)](https://github.com/alleyinteractive/news-sitemap-for-publishers/actions/workflows/all-pr-tests.yml)

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
--------------------

[](#releasing-the-plugin)

The plugin uses [action-release](https://github.com/alleyinteractive/action-release) via a [built release workflow](./.github/workflows/built-release.yml) 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
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

This project is actively maintained by [Alley Interactive](https://github.com/alleyinteractive). Like what you see? [Come work with us](https://alley.com/careers/).

- [Matthew Boynes](https://github.com/mboynes)

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance78

Regular maintenance activity

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

130d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2679da8ee30c4d7eae16ffd2271484027b3b27be6d7fb8202d5e4c6d210881d?d=identicon)[alleyinteractive](/maintainers/alleyinteractive)

---

Top Contributors

[![mboynes](https://avatars.githubusercontent.com/u/465154?v=4)](https://github.com/mboynes "mboynes (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

alleyinteractivenews-sitemap-for-publishers

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/alleyinteractive-wp-news-sitemap/health.svg)

```
[![Health](https://phpackages.com/badges/alleyinteractive-wp-news-sitemap/health.svg)](https://phpackages.com/packages/alleyinteractive-wp-news-sitemap)
```

###  Alternatives

[alleyinteractive/wp-block-converter

Convert HTML into Gutenberg Blocks with PHP

62321.0k1](/packages/alleyinteractive-wp-block-converter)[alleyinteractive/wp-curate

Plugin to curate homepages and other landing pages

10154.3k](/packages/alleyinteractive-wp-curate)[alleyinteractive/feed-consumer

Ingest external feeds and other data sources into WordPress

114.8k](/packages/alleyinteractive-feed-consumer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
