Test Page

Today is:

Output is: Tue

Today is: September 28, 2021

Next Monday is: 100421

092721

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

———————-

// 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 (Tue == ‘Mon’)
{
return ‘092821‘;
}
else
{
return ‘100421‘;
}
}
add_shortcode( ‘getmonday’, ‘getmonday_function’ );

Monday is [getmonday]