Can we be able to call the current date inside the shortcode?

[ad_1]

I would like to be able to call the current date into the shortcode so that i can make the initialDate for the dayGridYear to start at the current month rather than on Jan 1. Makes it much nice for people to not have to scroll past the completed months. Here is an example of the code i’d like to use….

[pretty_google_calendar gcal=""
use_tooltip="true" show_title="true" views="listDay,dayGridMonth,dayGridYear"
custom_list_button="Today"
initial_view="listDay"
fc_args="{
"listDayFormat": { "month": "long", "year": "numeric",
"day": "numeric", "weekday": "long" },
"buttonText": { "list": "Day", "month": "Month", "dayGridYear": "Year" },

"headerToolbar": { "center": "listDay,dayGridMonth,dayGridYear","start": "title", "end": "today prev,next" }, "initialDate": "" . date('Y-m-d') . '" }'
]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer