I'm trying to display a title, featured image, and content from a page into a new template (that will contain content from several pages). I tried to just echo the variables as shown below, but right now it's only display the content and title+"array". Any ideas?
Here is my current array:
<?php
$id = 2131;
$post = get_page($id);
$content = apply_filters('the_content', $post->post_content);
$title = $post->post_title;
$image = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'single-post-
thumbnail' );
echo $content;
echo $title;
echo $image;
?>