transmitstudio
11/3/2016 - 9:50 PM

Display content from a specific post by ID

Display content from a specific post by ID

<?php
function get_content($id) {

    $post = get_post($id);
    $content = apply_filters('get_the_content', $post->post_content);
    echo $content;

} 
?>

<!-- Usage: <?php get_content(42); ?> -->