Test Page

Today is:

Output is: Sat

Today is: June 19, 2021

Next Monday is: 062121

061421

[If date(“D”)=”Mon” then 061921]

———————-

// function that runs when shortcode is called
function wpb_demo_shortcode() {

// Things that you want to do.
$message = ‘Hello world!’;

// Output needs to be return
return $message;
}
// register shortcode
add_shortcode(‘greeting’, ‘wpb_demo_shortcode’);

The greeting is: [greeting]

function getmonday_function()
{
if (Sat == ‘Mon’)
{
return ‘061921‘;
}
else
{
return ‘062121‘;
}
}
add_shortcode( ‘getmonday’, ‘getmonday_function’ );

Monday is [getmonday]