Changelog for Redirect URL to Post

0.13.1

Bug Fixes

  • Fixed: Tracking parameters got lost.

0.13.0

Features

  • Redirect to the previous or next post (of the same post type) with ?redirect_to=prev or ?redirect_to=next.

blog post

0.12.0

Features

  • New parameters comment_count, comment_count_min (>=) and comment_count_max (<=) to filter by comment count. The value is always an integer. comment_count also takes negative values, which means “not”. Requires WordPress 4.9+.

Other

  • Whitelisted more tracking parameters for Google and Matomo Analytics.

0.11.2

Bug Fixes

  • Fixed values of parameter “cat” getting lost.
  • Fixed incorrect inclusion of posts outside of “count” when using “bias”.

0.11.1

Other

  • Button parameter ‘params’ now formatted as: “key1=value1|key2=value2| …” (Old format will continue working.)

0.11.0

Features

  • New parameter ‘bias’, to be used together with ‘?redirect_to=random’ and ‘count’. The value of this parameter is a percentage that determines how much the posts determined by ‘count’ will be preferred over the rest. Example: www.example.com/?redirect_to=random&count=10&bias=80 -> The most recent 10 posts will be preferred with an 80% probability. Can be used together with ‘offset’.

0.10.0

Features

  • New parameter “count” that can be used together with “random” to limit the pool of posts to the most recent (count has positive number) or first (count has negative number). Can be used together with “offset”.

Other

  • Changed default for cache to 60 seconds (Override it with cache=0)
  • Random posts are now always determined by PHP, not the database

0.9.0

Features

  • New parameter “offset” to retrieve the 2nd, 3rd, (integer > 3)th post. Default is 0 (i.e. 1st). For example “offset=1” means 2nd post. An offset too high will trigger the procedure for the case when no post was found.
  • New parameter “suppress_filters” . Default is 1 (on). Turn off (“suppress_filters=0”) when you use WPML so that WPML can filter by language.

Bug Fixes

  • fixed problem when latest post was not published

0.8.1

Other

  • added aliases “before” and “after” for “date_query_before” and “date_query_after”

0.8.0

Features

  • New parameter “cache” to cache the result retrieved from the database. Used with a number in seconds. Caches the total amount of posts when used with “random”. Can be enforced with constant “CHATTY_MANGO_RUTP_CACHE” (in wp-config.php).