In WordPress, you can generate a site URL shortcode by using the following code in your functions.php file:

function generate_site_url_shortcode() {
   return get_site_url();
}
add_shortcode( 'site_url', 'generate_site_url_shortcode' );

Now you can use the shortcode [site_url] in your WordPress pages or posts to display the site URL.