#!/bin/bash

echo "🔍 Checking Manage Event Page Content..."
echo "========================================"

# Check the actual page content in WordPress
ssh wp@upskill-staging.measurequick.com << 'EOF'
cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html

echo -e "\n📋 Page ID 5344 Content:"
wp post get 5344 --field=post_content

echo -e "\n📋 Page ID 5344 Status:"
wp post get 5344 --field=post_status

echo -e "\n📋 Page ID 5344 Template:"
wp post meta get 5344 _wp_page_template

echo -e "\n📋 Checking if TEC Community Events is active:"
wp plugin list | grep -i "events"

echo -e "\n📋 Checking TEC Community Settings:"
wp option get tribe_events_community_options --format=json | python3 -m json.tool 2>/dev/null || echo "No community options found"

EOF

echo -e "\n✅ Check complete"