November 29, 2024


In this comprehensive guide, we’ll delve into the use of the Black Friday date shortcode, designed to elevate your WordPress website by seamlessly integrating Black Friday-related dates in various formats.

Similar to the other shortcodes, this also enables you to dynamically display Black Friday information across your site.

Getting Started With Black Friday Date Shortcode

To use the shortcode, ensure that you’ve successfully installed and activated the AIO Shortcodes plugin on your WordPress website.

Basic Usage of [aio_blackfriday]

This shortcode displays Black Friday-related content.

Let’s explore its full potential through practical examples that will elevate your user experience.

  • Input: [aio_blackfriday]
  • Output: November 29, 2024

Placing the shortcode within your content, such as pages, posts, or widgets, will dynamically showcase Black Friday date details.

Unlocking Advanced Options And Attributes

Similar to its counterpart, the Black Friday date shortcode offers advanced options to tailor your content.

Utilizing ‘go’ Attribute:

Employ the ‘go‘ attribute to calculate future or past Black Friday dates. The format is [aio_blackfriday go="x"], with ‘x‘ indicating the desired time difference.

  • Input: [aio_blackfriday go="2"]
  • Output: November 27, 2026 (upcoming date for Black Friday + 2)
  • Input: [aio_blackfriday go="-1"]
  • Output: November 24, 2023 (past years date for Black Friday – 1)

Leveraging ‘format’ Attribute:

The ‘format‘ attribute empowers you to personalize the display format of Black Friday information.

  • Input: [aio_blackfriday format="mmmm dd, yyyy"]
  • Output: November 29, 2024 (default format)
  • Input: [aio_blackfriday format="ddS mmmm, yyyy"]
  • Output: 29th November, 2024 (Black Friday date in suffix to date, full month and year)

Combined Attributes:

Maximize the shortcode’s potential by combining attributes for precise outcomes.

  • Input: [aio_blackfriday go="3" format="dd-mm-yyyy"]
  • Output: 26-11-2027 (Black Friday + 3 in custom format)
  • Input: [aio_blackfriday go="-5" format="yyyy/mm/dd"]
  • Output: 2019/11/29 (Past Black Friday – 5 in the specified format)

Feel free to experiment with these attribute combinations to effectively showcase Black Friday-related content on your WordPress website.

Black Friday Date Format Options List

Here’s a format options list of offered date formats for displaying in different ways:

For month components:

  • mmmm” outputs the full month name (default) like January, July, December etc.
  • mmm” outputs the short month name like Feb, Sep, Nov etc.
  • mm” outputs the month number with/without leading zero like  01, 09, 11 etc.

For day components:

  • dd” outputs the day of the month with leading zero (01, 02, …, 31).
  • ddS” outputs the day of the month with leading zero and suffixes (01st, 02nd, 03rd, 04th, …, 31st).
  • d” outputs the day of the month without leading zero (1, 2, 3…, 31).
  • dS” outputs the day of the month with suffixes (1st, 2nd, 3rd, …, 31st).

For year components:

  • yyyy” outputs the full year (e.g., 2023, 2024 etc.).
  • yy” outputs the last two digits of the year (e.g. 23, 24).

These formats highlight the Black Friday date shortcode’s versatility, allowing you to customize your date information in different formats.

Frequently Asked Questions – FAQs

Here, you can find answers to common inquiries about using the Black Friday date Shortcode in WordPress.

How can I display Black Friday date using a shortcode in WordPress?

To showcase the Black Friday date (that changes automatically) simply install and activate the AIO Shortcodes plugin. Then, insert the [aio_blackfriday] shortcode into your page, post, or widget. This will dynamically display the date as per Black Friday details.

Can I use the shortcode to show past or future dates?

Absolutely! You can utilize the ‘go‘ attribute to display past or future Black Fridays. For example, [aio_blackfriday go="3"] will present the date of the Black Friday event that is three events away.

Is it possible to customize the date format for Black Friday?

Certainly! You can customize the date format using the ‘format‘ attribute. For instance, [aio_blackfriday format="dd/mm/yyyy"] will format the Black Friday date as day/month/year like 29/11/2024.

Still not using AIO Shortcodes?

Install our plugin to boost your site’s content SEO, automate your affiliate marketing, and lots more, just by using these simple WordPress shortcodes.