debug: Add template-level debug to trace content output
This commit is contained in:
10
single.php
10
single.php
@@ -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'),
|
||||||
|
|||||||
Reference in New Issue
Block a user