wordpress insert page content in the template
Visual Composer
1 2 3 4 |
$id=972; $post = get_post($id); $content = apply_filters('the_content', $post->post_content); echo $content; |
No Visual Composer
1 2 3 4 |
$id=972; $post = get_post($id); $content = apply_filters('the_content', $post->post_content); echo $post->post_content; |
Basic Page Content
1 2 3 4 |
$the_query = new WP_Query( 'page_id=972' ); while ($the_query -> have_posts()) : $the_query -> the_post(); the_content(); endwhile; |