function hydronet_external_feature_button_shortcode($atts) {
    $atts = shortcode_atts(
        array(
            'text' => 'View Feature',
        ),
        $atts,
        'hydronet_feature_button'
    );

    $post_id = get_the_ID();

    if (!$post_id) {
        return '';
    }

    $external_url = get_post_meta($post_id, 'external_url', true);

    if (empty($external_url)) {
        return '';
    }

    return '<a class="hydronet-feature-button" href="' . esc_url($external_url) . '" target="_blank" rel="noopener noreferrer">' . esc_html($atts['text']) . '</a>';
}
add_shortcode('hydronet_feature_button', 'hydronet_external_feature_button_shortcode');<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://hydronet.umd.edu/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://hydronet.umd.edu/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://hydronet.umd.edu/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://hydronet.umd.edu/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://hydronet.umd.edu/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
