I’ve a WP web page that was constructed with Elementor, and I am attempting to seize the web page content material through the REST API. The content material returned by the API is incomplete, with sure nested parts being omitted.
The API endpoint I am utilizing is https://[domain]/wp-json/wp/v2/pages/[page ID]
The rendered content material returned is that this:
"content material": {
"rendered": "tt<div data-elementor-type="wp-page" data-elementor-id="2946" class="elementor elementor-2946">nttttttttt<part class="elementor-section elementor-top-section elementor-element elementor-element-479213d0 elementor-section-full_width elementor-section-height-min-height elementor-section-height-default elementor-section-items-middle" data-id="479213d0" data-element_type="part">nttttttt<div class="elementor-background-overlay"></div>nttttttt<div class="elementor-container elementor-column-gap-default">nttttt<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3c3f8bdf" data-id="3c3f8bdf" data-element_type="column" data-settings="{"background_background":"basic"}">nttt<div class="elementor-widget-wrap elementor-element-populated">nttttttttt</div>ntt</div>nttttttt</div>ntt</part>ntttt<part class="elementor-section elementor-top-section elementor-element elementor-element-5187630f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5187630f" data-element_type="part">ntttttt<div class="elementor-container elementor-column-gap-default">nttttt<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a4c55b8" data-id="a4c55b8" data-element_type="column">nttt<div class="elementor-widget-wrap elementor-element-populated">ntttttttt<div class="elementor-element elementor-element-73305ff elementor-widget elementor-widget-text-editor" data-id="73305ff" data-element_type="widget" data-widget_type="text-editor.default">ntttt<div class="elementor-widget-container">nttt<fashion>/*! elementor - v3.7.4 - 31-08-2022 */n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#818a91;coloration:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{coloration:#818a91;border:3px strong;background-color:clear}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;top:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:middle;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{show:inline-block}</fashion>tttt<!-- wp:paragraph -->n<p><img src="/wp-content/uploads/2022/09/AHIA-Digital-Studying-Library-Brand.jpg" alt="" fashion="width:150px; margin:0 !necessary; padding: 0px 1em 1em 0px; float: left;">AHIA’s Digital Studying Audit Useful resource Heart is designed to reinforce your skilled data in inner auditing within the healthcare trade. Inside this member-only healthcare inner audit particular clearing home of AHIA sources you will see that a wide range of searchable academic content material from publication articles, academic recordings/displays and CHIAP® Certification examination preparation supplies. The system can be constantly up to date with supplies as they're developed sooner or later.<br><br><a href="/certification/chiap/">Click on right here for extra details about the Physique of Data and CHIAP Certification examination.</a></p>n<!-- /wp:paragraph -->tttttt</div>ntttt</div>nttttt</div>ntt</div>nttttttt</div>ntt</part>nttttttt</div>ntt",
"protected": false
}
Whereas the precise html output on the web page is that this:
<div data-elementor-type="wp-page" data-elementor-id="2946" class="elementor elementor-2946">
<part class="elementor-section elementor-top-section elementor-element elementor-element-479213d0 elementor-section-full_width elementor-section-height-min-height elementor-section-height-default elementor-section-items-middle" data-id="479213d0" data-element_type="part">
<div class="elementor-background-overlay"></div>
<div class="elementor-container elementor-column-gap-default">
<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3c3f8bdf" data-id="3c3f8bdf" data-element_type="column" data-settings="{"background_background":"basic"}">
<div class="elementor-widget-wrap elementor-element-populated">
<div class="elementor-element elementor-element-3a9395cb elementor-widget elementor-widget-theme-page-title elementor-page-title elementor-widget-heading" data-id="3a9395cb" data-element_type="widget" data-widget_type="theme-page-title.default">
<div class="elementor-widget-container">
<fashion>
/*! elementor - v3.7.4 - 31-08-2022 */
.elementor-heading-title {
padding: 0;
margin: 0;
line-height: 1
}
.elementor-widget-heading .elementor-heading-title[class*=elementor-size-] > a {
coloration: inherit;
font-size: inherit;
line-height: inherit
}
.elementor-widget-heading .elementor-heading-title.elementor-size-small {
font-size: 15px
}
.elementor-widget-heading .elementor-heading-title.elementor-size-medium {
font-size: 19px
}
.elementor-widget-heading .elementor-heading-title.elementor-size-large {
font-size: 29px
}
.elementor-widget-heading .elementor-heading-title.elementor-size-xl {
font-size: 39px
}
.elementor-widget-heading .elementor-heading-title.elementor-size-xxl {
font-size: 59px
}
</fashion><h1 class="elementor-heading-title elementor-size-default">Audit Useful resource Heart</h1>
</div>
</div>
</div>
</div>
</div>
</part>
<part class="elementor-section elementor-top-section elementor-element elementor-element-5187630f elementor-section-boxed elementor-section-height-default elementor-section-height-default" data-id="5187630f" data-element_type="part">
<div class="elementor-container elementor-column-gap-default">
<div class="elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-a4c55b8" data-id="a4c55b8" data-element_type="column">
<div class="elementor-widget-wrap elementor-element-populated">
<div class="elementor-element elementor-element-73305ff elementor-widget elementor-widget-text-editor" data-id="73305ff" data-element_type="widget" data-widget_type="text-editor.default">
<div class="elementor-widget-container">
<!-- wp:paragraph -->
<p><img src="/wp-content/uploads/2022/09/AHIA-Digital-Studying-Library-Brand.jpg" alt="" fashion="width:150px; margin:0 !necessary; padding: 0px 1em 1em 0px; float: left;">AHIA’s Digital Studying Audit Useful resource Heart is designed to reinforce your skilled data in inner auditing within the healthcare trade. Inside this member-only healthcare inner audit particular clearing home of AHIA sources you will see that a wide range of searchable academic content material from publication articles, academic recordings/displays and CHIAP® Certification examination preparation supplies. The system can be constantly up to date with supplies as they're developed sooner or later.<br><br><a href="/certification/chiap/">Click on right here for extra details about the Physique of Data and CHIAP Certification examination.</a></p>
<!-- /wp:paragraph -->
</div>
</div>
</div>
</div>
</div>
</part>
</div>
Every thing inside the first <div class="elementor-widget-wrap elementor-element-populated">
div is being excluded, though the second div with the identical class is correctly populated with all its content material.