Skip to content

Commit

Permalink
Version 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
wpgaurav authored May 24, 2022
1 parent 531205c commit 12e9949
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 12 deletions.
38 changes: 28 additions & 10 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
Requires at least: 3.0.1
Tested up to: 5.9
Stable tag: 1.2.3
Tested up to: 6.0.0
Stable tag: 1.2.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -34,18 +34,23 @@ Add today's date by `[date]`, current year by `[year]`, previous year by `[pyear
* Yoast SEO Premium
* Gutenberg and Block Editor Content, Headings and Buttons
* Elementor Page Builder
* WP Bakery Page Builder
* Beaver Builder
* Brizy Builder
* Oxygen Builder
* All major themes

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

Note: Since August 2021, Google has started showing h1 titles in search results, this plugin becomes even more useful as no other SEO plugins adds Current Month, Current Year or Today's Date in h1 titles except this; keeping the same in SEO meta as well.

### More features

* Full Rank Math OpenGraph Support.
* Schema and OpenGraph support in YoastSEO.
* Full Schema and OpenGraph support in YoastSEO.
* Multiple Langauge (WPML) Support: Shortcode renders your site's defined language.
* Contextual Related Posts Support
* Jetpack Related Posts Support
* Contextual Related Posts Support.
* Jetpack Related Posts Support.
* Totally native. No configuration required.

### Easy to use
Expand All @@ -54,7 +59,7 @@ Just install the plugin (see Installation tab) and activate it. Add [year] to re

As the months & years change, these shortcodes get updated into the content and title automatically on the shortcode locations.

Zero bloat. No CSS/JS files loaded.
Zero bloat. No CSS/JS files loaded. No database queries are made and the content is rendered on-the-fly. I am a performance geek myself, so I understand what you need.

* [More details](https://gauravtiwari.org/snippet/dynamic-month-year/)
* [Free Support](https://wordpress.org/support/plugin/dynamic-month-year-into-posts/)
Expand All @@ -70,7 +75,9 @@ 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.
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.

Please help me with a [donation](https://gauravtiwari.org/donate/) or a positive review to keep the development going.

== Frequently Asked Questions ==

Expand All @@ -89,6 +96,15 @@ Yes. The shortcode outputs are WPML ready. Since there is no settings page, you
= How can I use these shortcodes in my theme/PHP code? =
You can use `<?php echo do_shortcode('[year]');?>`, `<?php echo do_shortcode('[month]');?>` etc. in themes or in functionality plugins to use these shortcodes.

= How can render shortcodes in ACF fields? =
This plugin doesn't render shortcodes in ACF fields by default (due to various reasons, security being the first). But if you need to render [year] etc. shortcodes to render, you can enable those field typewise or even field-namewise. Just add this code in your theme's functions.php file or in Code Snippets plugin:

ACF field type => text
`add_filter('acf/format_value/type=text', 'do_shortcode');`

ACF field name => headline
`add_filter('acf/format_value/name=headline', 'do_shortcode');`

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly.
Expand All @@ -105,6 +121,8 @@ You can use `<?php echo do_shortcode('[year]');?>`, `<?php echo do_shortcode('[m


== Changelog ==
= 1.2.4 =
* Added: JSON-LD support for Yoast SEO Schema. Props to [@sathoro](https://wordpress.org/support/topic/works-great-8169/)

= 1.2.3 =
* Improved: `[monthyear]` shortcode renders next month if the current month is about to end, after 28th every month.
Expand Down Expand Up @@ -183,8 +201,8 @@ You can use `<?php echo do_shortcode('[year]');?>`, `<?php echo do_shortcode('[m
* Updated Readme.txt file

= 1.0.2 =
* [pyear] yields previous year (e.g., 2020)
* [nyear] yields next year (e.g., 2022)
* [pyear] yields previous year (e.g., 2021)
* [nyear] yields next year (e.g., 2023)

= 1.0.1 =
* Fixed Name Conflicts
Expand Down
9 changes: 7 additions & 2 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 and Month into content and meta using shortcodes.
* Version: 1.2.3
* Version: 1.2.4
* 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.3' );
define( 'DYNAMIC_MONTH_YEAR_INTO_POSTS_VERSION', '1.2.4' );

// Registering shortcodes
add_shortcode( 'year' , 'rmd_current_year' );
Expand Down Expand Up @@ -205,6 +205,11 @@ function rmd_current_dt() {
add_filter( 'wpseo_opengraph_title', 'do_shortcode' );
add_filter( 'wpseo_opengraph_desc', 'do_shortcode' );
// add_filter( 'wpseo_json_ld_output', 'do_shortcode' );
add_filter('wpseo_schema_webpage', function($data) {
$data['name'] = do_shortcode($data['name']);

return $data;
});

// SEOPress Support

Expand Down

0 comments on commit 12e9949

Please sign in to comment.