sad
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user