Add any content to post the_content (befor, after)
add_filter('the_content','prepend_this'); function prepend_this($content) { //add elementor-template (dynamic FAQ with ACF after post the_content)</pre> <div>if( is_single() ){</div> <div> $content = $content . '[elementor-template id="105572"]';</div> <div>}</div> <div></div> <pre>return $content; }
Additional conditions:
if( ( is_single() || is_page() ) && in_the_loop() && is_main_query() && get_post_type () != ‘my_custom_post_type’ )