Skip to content
Home > Posts > Beaver Builder Current Date Shortcode

Beaver Builder Current Date Shortcode

You can insert a shortcode for current year or current date into text areas of Customizer (such as the footer) or in Beaver Builder layouts, as long as the Beaver Builder Theme is installed.

The basic shortcode has a format parameter that accepts PHP date formats. The shortcode is shown below:

[ fl_year ]

(if you’re copying the shortcode from this post, remove the spaces between the square bracket before and after the “fl_year” text as seen below)

This shortcode was released some time after the footers for V3 were created. When you’re building a new site or revising/updating an existing site, take an extra moment to put the  [ fl_year ] shortcode in place of the existing date in the footer’s copyright section.

Its a good practice to paste the shortcode in the “text” tab of the text editor rather than the default “visual” tab. Sometimes when shortcodes are pasted directly in the visual tab, they get enclosed in “pre” tags.

By default, format='Y', which means a four-digit year (2018). If you want to change to change to a two-digit year (18), use lower case 'y' as the value. See the following sections, the first for common use in the footer and the second for examples of date formats.

[ fl_year ] = 2018
[ fl_year format='y' ] = 18
[ fl_year format='F j, Y' ] = May 6, 2018
[ fl_year format='l, F j, Y' ] = Saturday, May 26, 2018 
[ fl_year format='m-d-Y' ] = 05-25-2018 
[ fl_year format='n-j-y' ] = 5-6-18
[ fl_year format='d.m.y' ] = 25.05.18 

(if you’re copying the shortcode from this post, remove the spaces between the square bracket before and after the “fl_year” text)

Tip: As long as you have the Beaver Builder Theme installed, you can use this shortcode in Beaver Builder (including Themer) layouts. If you copy and paste this code and the quotation marks display in the output or only part of the date displays, try deleting and retyping the quotation marks – sometimes hidden formatting can sneak in.


Source: https://kb.wpbeaverbuilder.com/article/639-beaver-builder-theme-shortcode-for-current-date

Scroll To Top