Skip to content

Commit

Permalink
Version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wpgaurav authored Mar 25, 2023
1 parent 6239cdc commit 437da4c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
23 changes: 18 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: gauravtiwari
Donate link: https://gauravtiwari.org/donate/
Tags: seo, year, automatic, add-on, hooks, dynamic-content, admin, shortcode, current date, month, yoast, gutenberg, widget, content, writing
Requires at least: 3.0.1
Tested up to: 6.0.2
Stable tag: 1.2.9
Tested up to: 6.1
Stable tag: 1.3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand All @@ -20,6 +20,8 @@ But that's not it.

[See Full List of Shortcodes](https://gauravtiwari.org/snippet/dynamic-month-year/#shortcodes)

* New: Ace Black Friday with new dynamic shortcodes. Black Friday and Cyber Monday dates can be inserted anywhere by using `[blackfriday]` and `[cybermonday]`.

### Works with popular SEO Plugins

* Supports RankMath, Yoast and SEOPress plugins and can be used to replace all their date based variables.
Expand All @@ -43,9 +45,10 @@ But that's not it.
* Brizy Builder
* Oxygen Builder
* Jetpack
* Intelly Related Posts a.k.a. Inline Related Posts (IRP)
* Advanced Custom Fields (Manual: please see the FAQs)
* Lightweight Accordion (including Schema)
* All major themes like default WordPress themes, Astra, Neve, Kadence
* All major themes like default WordPress themes, Astra, Neve, Kadence, GeneratePress and Blocksy.

Tested to be totally working with Yoast SEO, SEOPress and Rank Math's breadcrumbs, custom meta titles, excerpt etc.

Expand All @@ -59,6 +62,7 @@ Note: Since August 2021, Google has started showing h1 titles in search results,
* Contextual Related Posts Support.
* Jetpack Related Posts Support.
* Totally native. No configuration required.
* Cache friendly.

### Easy to use

Expand All @@ -71,6 +75,7 @@ Zero bloat. No CSS/JS files loaded. No database queries are made and the content
* [More details](https://gauravtiwari.org/snippet/dynamic-month-year/)
* [Free Support](https://wordpress.org/support/plugin/dynamic-month-year-into-posts/)
* [More WordPress Plugins and Web Tools](https://gauravtiwari.org/code/)
* [WordPress Deals](https://gauravtiwari.org/wordpress-deals/)
* [Request a Feature](https://gauravtiwari.org/contact/)
* [Follow Development on Github](https://github.com/wpgaurav/dynamic-month-year-into-posts)

Expand All @@ -82,9 +87,13 @@ Dynamic Month & Year into Posts is a completely native shortcode plugin. It has

I will provide instant support for all your queries or feature requests. Use [support forum](https://wordpress.org/support/plugin/dynamic-month-year-into-posts/) to ask your questions, request new features or report something broken.

I will try my best to ensure that this plugin is compatible with every functionality plugin you use. Please create a support request and allow me some time.
### Compatibility

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.

Please note that many 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.
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.

If you are using TablePress along with a cache plugin, like [WP Rocket](https://gauravtiwari.org/wp-rocket-review/), please clear transients regularly or disable table cache to see updated shortcode data.

Help me with a positive review to keep the development going.

Expand Down Expand Up @@ -132,6 +141,10 @@ ACF field name => headline

== Changelog ==

= 1.3.0 =
* 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)
* Intelly Related Posts a.k.a. IRP support.

= 1.2.9 =
* Readme update.

Expand Down
15 changes: 12 additions & 3 deletions dynamic-month-year-into-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Dynamic Month & Year into Posts
* Plugin URI: https://gauravtiwari.org/snippet/dynamic-month-year/
* 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.
* Version: 1.2.9
* Version: 1.3.0
* Author: Gaurav Tiwari
* Author URI: https://gauravtiwari.org
* License: GPL-2.0+
Expand All @@ -28,7 +28,7 @@
if ( ! defined( 'WPINC' ) ) {
die;
}
define( 'DYNAMIC_MONTH_YEAR_INTO_POSTS_VERSION', '1.2.9' );
define( 'DYNAMIC_MONTH_YEAR_INTO_POSTS_VERSION', '1.3.0' );

// Registering shortcodes
add_shortcode( 'year' , 'rmd_current_year' );
Expand Down Expand Up @@ -170,7 +170,16 @@ function rmd_current_wd() {
$wd = date_i18n("D");
return "$wd";
}

add_shortcode( 'blackfriday' , 'rmd_blackfriday' );
function rmd_blackfriday() {
$bfdate = date_i18n("F j", strtotime( '2022-11-25 00:00:00' ));
return "$bfdate";
}
add_shortcode( 'cybermonday' , 'rmd_cybermonday' );
function rmd_cybermonday() {
$cmdate = date_i18n("F j", strtotime( '2022-11-28 00:00:00' ));
return "$cmdate";
}
// Adding support to native WP elements

add_filter( 'the_title', 'do_shortcode' );
Expand Down

0 comments on commit 437da4c

Please sign in to comment.