I want to create a shortcode in php using script organizer, without using the shortcode feature because I want name my shortcode.
I created the following script (which works very well with another plugin called “code snippet”).
$post_id = get_the_ID();
// Get the dates
$startdate = get_post_field(
$enddate = get_post_field(