In WordPress, redirect a chosen slug, "latest" by default, to, well, the most-recently published post.
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
languages
composer.json
eth-redirect-to-latest.php
readme.txt

readme.txt

=== ETH Redirect to Latest Post ===
Contributors: ethitter
Donate link: https://ethitter.com/donate/
Tags: latest, latest post, redirect, redirect latest, redirect post
Requires at least: 4.5
Tested up to: 4.7
Stable tag: 0.2.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Redirect a chosen slug, "latest" by default, to, well, the most-recently published post.

== Description ==

Once activated, a given slug will redirect to whatever is the most recently-published post on the site. By default, the slug is `latest`, but it can be changed from the Permalinks settings screen.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/eth-redirect-to-latest` directory, or install the plugin through the WordPress plugins screen directly.
1. Activate the plugin through the 'Plugins' screen in WordPress.
1. If desired, change the slug from the 'Permalinks' screen in WordPress.

== Changelog ==

= 0.2.2 =
* Handle sites using slug-only permalinks

= 0.2.1 =
* Correct Composer path error

= 0.2 =
* Initial release