I’m using the below code to include a pages content into a template.
<?php $post_id = 12; $queried_post = get_post($post_id); ?> <h2><?php echo $queried_post->post_title; ?></h2> <?php echo $queried_post->post_content; ?>
I’d also like to use:
How can I make that appear so that within that section it shows the featured image of that post, and not the page it’s being display on?
- The topic ‘Displaying Featured Image When Including Page’ is closed to new replies.