How to get title and content according to page in WordPress

How to get title and content according to page name in WordPress.
Get title and content according to page in WordPress
Use the following code in you php page:-
<?php $my_posts=get_page_by_title('yourpagename', OBJECT,'page'); ?> <?php echo $my_posts->post_title;?> <?php echo $my_posts->post_content;?> <img src="<?php echo wp_get_attachment_url( get_post_thumbnail_id($val));?>">
Step:-Give ur page name into ‘yourpagename’ which u set in your DASHBOAD panel in WordPress.Save it Run.
**Page name is case sentative.
Total Page Visits: 11886 - Today Page Visits: 1