Why can’t I get an elementor created page?
-
I am using the code below to get the_content from a certain page. It all works great on pages that are not created / edited with elementor. Why is that?
$my_postid = 12;//This is page id or post id $content_post = get_post($my_postid); $content = $content_post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content;
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
- The topic ‘Why can’t I get an elementor created page?’ is closed to new replies.