(AADMY) Add Auto Date Month Year In Posts Dynamically

Last updated on: November 22, 2023

The plugin allows users to easily add the current year, month, or date to their WordPress posts or pages using shortcodes. This can be useful for SEO purposes, as it allows users to update the content of their posts or pages with the current year, month, or date without having to manually change the content each time.

This WordPress plugin allows you to dynamically add current dates, years, months, and other time-related elements to your content. It helps to keep your content up-to-date and improve your SEO thus ensuring that your website’s content is always fresh and relevant. With this plugin, you can easily add dynamic current time elements to your website without any coding knowledge.

To use the plugin, users can insert one of the following shortcodes into the content of their post or page:

AADMY- Add Auto Date Month Year – Shortcodes List

PurposeShortCodeOutput
Current Yearcy2023
Previous Yearpy2022
Next Yearny2024
Current DaydayThursday
Current Datecd23
Current MonthcmNovember
Previous MonthpmOctober
Next MonthnmDecember
Full DatetodayNovember 23, 2023
Dont forget to put these shortcodes in Square brackets [shortcode]

The shortcodes will be replaced with the current year, month, or day when the page is displayed.

In addition to the basic shortcodes, the plugin may also include additional features or options, such as the ability to customize the format of the date or time, or to display the modified date of a post or page. The plugin includes functions and shortcodes to enable these features and options, and provides users with documentation on how to use them.

(AADMY) Extra Shortcodes List

PurposeShortcodeOutput
Site TitlestNuman Rasheed
Copyright textfcr© 2023 Numan Rasheed - All Rights Reserved.
Copyright Symbolcopy
Post Modifiedpost_modifiedNovember 22, 2023
Age Calculatorage dob=”08/14/1947″76 Years
Event Happenedaadmy_event date=”08/14/1947″76 years, 3 months, and 9 days ago
Don’t forget to put these shortcodes in Square brackets [shortcode]

Copy/Paste Function

Copy Shortcode
copy name=”copy1″ value=”AADMY Auto Plugin”
(You can set your own value within the name=” “ attribute. I used copy1)
AADMY Auto Plugin Value Stored in copy1
Don’t forget to put these shortcodes in Square brackets [shortcode]

Paste Shortcode
paste name=”copy1″
Pasting the Copied value Here stored in the copy1 container (output is given below)
Don’t forget to put these shortcodes in Square brackets [shortcode]
output is

offset Function

This shortcode will display a previous or future date based on an offset from the current date. Usage: November 23, 2023, where “OFFSET” is an integer representing the number of days before (-) or after (+) the current date. Examples:

November 22, 2023
Don’t forget to put these shortcodes in Square brackets [shortcode]
  1. offset date=”-1″ will display the previous date based on the user’s timezone. Example output: “November 22, 2023 ”.
  2. offset date=”0″ is equivalent to November 23, 2023 and will display the current date. Example output: “November 23, 2023”.
  3. offset date=”1″ will display the next date based on the user’s timezone. Example output: November 24, 2023.
  4. offset date=”365″ will display the date one year from the current date based on the user’s timezone. Example output: “November 22, 2024”.

How to Place Shortcode in PHP

To place a shortcode in PHP, you can use the do_shortcode() the function provided by WordPress. This function allows you to execute a shortcode within a PHP function or script.

Here is an example of how you can use the do_shortcode() function to execute a shortcode in PHP:

echo do_shortcode(‘[shortcode_name]’);

AADMY Changelog
Last updated on: November 22, 2023

ReleasesChanges
1.1.4Latest WordPress Support Added: Nov 19, 2023
1: Tomorrow Day Function Added use November 24, 2023 for the next day date.
1.1.3Latest WordPress Support Added: Aug 30, 2023
1.1.2Bugs Fixed and Minor Changes Added: May 27, 2023
1: Two Post Modified Functions are Added (With Date & With Date and Time)
2: Next and Previous Days Added for Next day use nd and for previous Day use pd
1.1.1Bugs Fixed and Major Changes Added: May 05, 2023
1: FCR Function Updated (Bug Fixed)
2: Offset date Function Added
3: Major Changes
1.1.0Bugs Fixed and Minor Changes Added: April 05, 2023
1: Bugs Fixed
2: README.txt Updated
3: FAQ Updated
4: Contributors Added
5: Style Rearranged
6: Useless Files Removed
7: Welcome Page Edited
1.0.9Bugs Fixed and Major Changes Added: April 02, 2023
1: Bugs Fixed
2: Main File Renamed
3: Plugin Renamed
4: Plugin Description Edited
5: Session Removed from Copy/Paste
6: Freemius SDK updated to v2.5.6
1.0.8Bugs Fixed and New Shortcodes Added: March 20, 2023
1: Bugs Fixed (Age Calculator)
1.0.7Bugs Fixed and New Shortcodes Added: March 16, 2023
1: Bugs Fixed
2: New Shortcode for Copy Pasting Added
1.0.6Bugs Fixed and Shortcodes Changed: January 27, 2023
1: Bugs Fixed
2: All Shortcode changed from long to short to handle characters issues
1.0.5Bugs Fixed and New Shortcodes Added: January 18, 2023
1: Bugs Fixed
2: Age Calculator Added use shortcode to calculate The total age
3: Custom period function added (combined)
4: Time Modification function added to post_modified
1.0.4Bugs Fixed and New Shortcodes Added: January 05, 2023
1: Bugs Fixed
2: New shortcodes added
3: SEO Plugins Support Added SEOPress/RankMath/YoastSEO
1.0.3Bugs Fixed & Welcome Page added: December 22, 2022
1: Bugs Fixed
2: New shortcodes added
3: Welcome Page Added
1.0.2Bugs Fixed and New shortcodes added: December 22, 2022
1: Bugs Fixed and New shortcodes added
2: Copy Symbol & Copyrights Text shortcode added.
3:
Show the Last Modified Date using the shortcode added
1.0.1Bugs Fixed and Some Other Changings: December 21, 2022
1: Bugs Fixed
2: Table and Menu Registered
1.0.0Initial Release: December 21, 2022