Create Event

post_content; // Strip ALL HTML comments that might contain shortcode references // Use multiple patterns to catch all variations $patterns = [ '//s', '//s', '//s', '//s' // Catch all remaining HTML comments ]; foreach ($patterns as $pattern) { $raw_content = preg_replace($pattern, '', $raw_content); } // Clean up any extra whitespace $raw_content = trim($raw_content); // Process shortcodes directly without the_content filter $processed = do_shortcode($raw_content); // Output the processed content echo $processed; endwhile; else: // No posts found - show the shortcode directly echo do_shortcode('[tribe_community_events]'); endif; ?>