Overview
The countdown_timer
shortcode provides a simple way to embed a countdown timer into WordPress posts or pages. This timer counts down from a specified number of minutes and redirects to a given URL upon completion.
Attributes
minutes
: The duration of the countdown, in minutes. Default is 15 minutes.redirect_url
: The URL to which the user will be redirected after the countdown ends. Default ishttps://example.com
.
Usage
To use the shortcode, insert “countdown_timer"
into your post or page. You can customize it with the following attributes:
"countdown_timer minutes="20" redirect_url="https://yoursite.com"
Example
"Countdown_timer minutes="30" redirect_url="https://example.com/page"
This will create a 30-minute countdown timer. After the timer reaches zero, the page will redirect to https://example.com/page
.
Here I have added the Shortcode for 5 minutes
:
Recent Comments