#!/bin/bash

echo "🔧 Fixing Manage Event Page Shortcode..."
echo "========================================"

# Connect to staging server and update the page content
ssh wp@upskill-staging.measurequick.com << 'EOF' 2>/dev/null || true
cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html

echo "📋 Current page content for ID 5344:"
wp post get 5344 --field=post_content

echo -e "\n🔧 Updating page content with [hvac_manage_event] shortcode..."
wp post update 5344 --post_content="[hvac_manage_event]"

echo -e "\n✅ Updated page content:"
wp post get 5344 --field=post_content

echo -e "\n🔄 Flushing cache..."
wp cache flush

echo -e "\n✅ Page updated successfully"
EOF

echo -e "\n✅ Fix complete"