#!/bin/bash echo "=== Fixing Escaped HTML Comments in Page Content ===" # Function to fix escaped HTML comments in database fix_escaped_comments() { echo "Connecting to staging server..." # Update the manage event page content ssh roodev@146.190.76.204 << 'EOF' cd /home/974670.cloudwaysapps.com/uberrxmprk/public_html echo "Updating Manage Event page content..." wp post update 5344 --post_content='

Create and Manage Your HVAC Training Events

Use this form to create new training events or edit existing ones. Please fill out all required fields to ensure your event is properly listed and attendees receive accurate information.

Event Creation Tips:


[tribe_community_events view="submission_form"]' # Check for other pages with escaped HTML comments echo "Checking for other pages with escaped HTML comments..." wp db query "SELECT ID, post_title FROM wp_posts WHERE post_type='page' AND post_content LIKE '%<\\\\!--%' AND post_status='publish'" --skip-column-names # Clear caches echo "Clearing caches..." wp cache flush wp breeze purge --cache=all EOF } # Run the fix fix_escaped_comments echo "" echo "=== Fix Complete ===" echo "The escaped HTML comments have been removed from the page content." echo "This script can be run again if the issue reoccurs."