Elementor: Get content from builder with in plugin

842 views Asked by At

I am writing a plugin for get content from elementor page builder. On front end its showing simply with the_content() but in plugin its not.

I am using get_post(id) for get content but it's showing content from WordPress editor instead of page builder.

Any idea why this???

Thanks

1

There are 1 answers

0
Kashif Munir On

Elementor data is saving is meta filed _elementor_data.

$elementorContent = get_post_meta($post_ID, '_elementor_data',true);