debug: Add template-level debug to trace content output

This commit is contained in:
FrankZamora
2025-11-27 20:12:31 -06:00
parent c564ee7a2a
commit cfcc38c0f7

View File

@@ -39,8 +39,18 @@ if (function_exists('roi_render_component')) {
<!-- Post Content --> <!-- Post Content -->
<article class="post-content"> <article class="post-content">
<!-- DEBUG: BEFORE the_content() -->
<?php <?php
// DEBUG: Capturar output de the_content
ob_start();
the_content(); the_content();
$captured_content = ob_get_clean();
// DEBUG: Log y output
if (defined('WP_DEBUG') && WP_DEBUG) {
error_log('ROI DEBUG single.php: the_content() returned ' . strlen($captured_content) . ' chars');
error_log('ROI DEBUG single.php: First 300 chars: ' . substr($captured_content, 0, 300));
}
echo $captured_content;
wp_link_pages(array( wp_link_pages(array(
'before' => '<div class="page-links">' . esc_html__('Pages:', 'roi-theme'), 'before' => '<div class="page-links">' . esc_html__('Pages:', 'roi-theme'),