Skip to content

Commit ac46c89

Browse files
authored
Version 1.3.1
1 parent 437da4c commit ac46c89

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

README.txt

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
=== Plugin Name ===
22
Contributors: gauravtiwari
33
Donate link: https://gauravtiwari.org/donate/
4-
Tags: seo, year, automatic, add-on, hooks, dynamic-content, admin, shortcode, current date, month, yoast, gutenberg, widget, content, writing
4+
Tags: seo, year, automatic, add-on, hooks, dynamic-content, admin, shortcode, current date, month, yoast, gutenberg, widget, content, writing, editor, elementor, shortcodes
55
Requires at least: 3.0.1
6-
Tested up to: 6.1
7-
Stable tag: 1.3.0
6+
Tested up to: 6.1.1
7+
Stable tag: 1.3.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -89,7 +89,7 @@ I will provide instant support for all your queries or feature requests. Use [su
8989

9090
### Compatibility
9191

92-
I use the plugin myself on [my primary website](https://gauravtiwari.org) and I try my best to ensure that this plugin is compatible with every functionality plugin you use. Please it isn't compatible with your stack, create a support request and allow me some time.
92+
I use the plugin myself on [my primary website](https://gauravtiwari.org) and I try my best to ensure that this plugin is compatible with every functionality plugin you use. Please let me know if this plugin isn't compatible with your stack, create a support request and allow me some time.
9393

9494
Please note that some plugins strip shortcodes or disable rendering of shortcodes. In such cases, it's impossible to implement dynamic dates without rewriting the whole plugin code and breaking a couple of things. But still, I'll give a try.
9595

@@ -119,10 +119,14 @@ This plugin doesn’t render shortcodes in ACF fields by default (due to various
119119
Just add this code in your theme’s functions.php file or in the Code Snippets plugin:
120120

121121
ACF field type => text
122-
`add_filter('acf/format_value/type=text', 'do_shortcode');`
122+
```
123+
add_filter('acf/format_value/type=text', 'do_shortcode');
124+
```
123125

124126
ACF field name => headline
125-
`add_filter('acf/format_value/name=headline', 'do_shortcode');`
127+
```
128+
add_filter('acf/format_value/name=headline', 'do_shortcode');
129+
```
126130

127131
== Installation ==
128132

@@ -141,6 +145,9 @@ ACF field name => headline
141145

142146
== Changelog ==
143147

148+
= 1.3.1 =
149+
* Date change for Black Friday and Cyber Monday dates
150+
144151
= 1.3.0 =
145152
* New: `[blackfriday]` and `[cybermonday]` shortcodes render this years Black Fridy and Cyber Monday dates like November 25 and November 28. Couple these with `[year]` to make the dates complete. [See this example](https://gauravtiwari.org/wp-content/uploads/2022/10/black-friday-date.jpg)
146153
* Intelly Related Posts a.k.a. IRP support.

dynamic-month-year-into-posts.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: Dynamic Month & Year into Posts
1717
* Plugin URI: https://gauravtiwari.org/snippet/dynamic-month-year/
1818
* Description: Insert dynamic year, month, dates, days, next and previous dates into content and meta using shortcodes. Use this plugin to boost your site’s SEO, automate your affiliate marketing, automatically updating blogging lists, offer dynamic coupon expiries and more, just by using these variables anywhere.
19-
* Version: 1.3.0
19+
* Version: 1.3.1
2020
* Author: Gaurav Tiwari
2121
* Author URI: https://gauravtiwari.org
2222
* License: GPL-2.0+
@@ -28,7 +28,7 @@
2828
if ( ! defined( 'WPINC' ) ) {
2929
die;
3030
}
31-
define( 'DYNAMIC_MONTH_YEAR_INTO_POSTS_VERSION', '1.3.0' );
31+
define( 'DYNAMIC_MONTH_YEAR_INTO_POSTS_VERSION', '1.3.1' );
3232

3333
// Registering shortcodes
3434
add_shortcode( 'year' , 'rmd_current_year' );
@@ -172,12 +172,12 @@ function rmd_current_wd() {
172172
}
173173
add_shortcode( 'blackfriday' , 'rmd_blackfriday' );
174174
function rmd_blackfriday() {
175-
$bfdate = date_i18n("F j", strtotime( '2022-11-25 00:00:00' ));
175+
$bfdate = date_i18n("F j", strtotime( '2022-11-24 00:00:00' ));
176176
return "$bfdate";
177177
}
178178
add_shortcode( 'cybermonday' , 'rmd_cybermonday' );
179179
function rmd_cybermonday() {
180-
$cmdate = date_i18n("F j", strtotime( '2022-11-28 00:00:00' ));
180+
$cmdate = date_i18n("F j", strtotime( '2022-11-27 00:00:00' ));
181181
return "$cmdate";
182182
}
183183
// Adding support to native WP elements

0 commit comments

Comments
 (0)