This commit is contained in:
IGNY8 VPS (Salman)
2025-12-01 11:24:15 +00:00
parent 1eb25d1c47
commit 30b93e5715
2 changed files with 24 additions and 6 deletions

View File

@@ -51,6 +51,21 @@ $featured_image_prompt = igny8_get_featured_image_prompt(get_the_ID());
$content = get_the_content();
$content = apply_filters('the_content', $content);
$parsed_content = igny8_parse_content_sections($content);
// Debug logging
if (defined('WP_DEBUG') && WP_DEBUG) {
error_log('IGNY8 Template Debug - Post ID: ' . get_the_ID());
error_log('Content length: ' . strlen($content));
error_log('Intro length: ' . strlen($parsed_content['intro']));
error_log('Sections count: ' . count($parsed_content['sections']));
if (!empty($parsed_content['sections'])) {
foreach ($parsed_content['sections'] as $idx => $sec) {
error_log('Section ' . ($idx + 1) . ': ' . $sec['heading']);
}
}
error_log('In-article images count: ' . count($in_article_images));
error_log('Imported images meta: ' . print_r(get_post_meta(get_the_ID(), '_igny8_imported_images', true), true));
}
?>
<div class="igny8-content-wrapper">