README.md 1.43 KB
Newer Older
Erick Hitter's avatar
Erick Hitter committed
1 2 3 4 5
# 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  
Erick Hitter's avatar
Erick Hitter committed
6
**Tested up to:** 5.7  
7
**Stable tag:** 0.3  
Erick Hitter's avatar
Erick Hitter committed
8 9 10
**License:** GPLv2 or later  
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html  

Erick Hitter's avatar
Erick Hitter committed
11
Redirect a chosen slug, "latest" by default, to, well, the most-recently-published post.
Erick Hitter's avatar
Erick Hitter committed
12 13 14

## Description ##

Erick Hitter's avatar
Erick Hitter committed
15
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.
Erick Hitter's avatar
Erick Hitter committed
16 17 18 19 20 21 22

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

Erick Hitter's avatar
Erick Hitter committed
23 24 25 26 27 28
## Frequently Asked Questions ##

### Can I redirect to something other than a post? ###

Yes, using the `eth_redirect_to_latest_post_query_args` or `eth_redirect_to_latest_post_redirection` filters introduced in v0.3.

Erick Hitter's avatar
Erick Hitter committed
29 30
## Changelog ##

31 32 33 34
### 0.3 ###
* Introduce filters to make redirection more flexible.
* Add unit tests and conform to coding standards.

Erick Hitter's avatar
Erick Hitter committed
35 36 37 38 39 40 41 42
### 0.2.2 ###
* Handle sites using slug-only permalinks

### 0.2.1 ###
* Correct Composer path error

### 0.2 ###
* Initial release