In your example, $posts_page
contains the ID of the page for posts, you can use that with any API function that accepts a post ID.
For the featured image:
$posts_page = get_option( 'page_for_posts' );
$post_thumbnail_id = get_post_thumbnail_id( $posts_page );
$url = wp_get_attachment_image_src( $post_thumbnail_id, 'your-custom-size' );
echo $url;
And outputting post title with filters applied:
$posts_page = get_option( 'page_for_posts' );
$title = get_post_field( 'post_title', $posts_page );
if ( ! is_wp_error( $title ) ) {
echo $title;
}
Related Posts:
- how i can increase Featured thumbnails size?
- Multiple Post thumbnails (at least three)
- How can I specify the width and height of the Featured Image in TwentyTwelve theme?
- How to implement two separate featured images for each post/page
- Add class name to post thumbnail
- Delete original image – keep thumbnail?
- the_post_thumbnail responsive srcset not populating with custom image size
- Set custom name for generated thumbnails
- change set_post_thumbnail_size according to post type admin page
- Can’t extract and set SVG dimensions
- Getting Thumbnail Path rather than Image Tag
- How to crop thumbnail height to auto with set width
- Image uploader with “Set Featured Image” link on front end
- adding an id to the_post_thumbnail
- How can I display my featured image correctly inside my single posts?
- Featured image upload finished hook
- Generate thumbnail for images with the same size as thumbnails
- How to get_posts having post thumbnail?
- wordpress custom walker for thumbnails with custom menu
- Display the first image from a post in RSS feed
- Filter For Featured Image
- add_image_size and add_filter(‘image_size_names_choose’, ‘my_custom_image_sizes’) not working with wordpress 3.5.2
- Custom post type thumbnail / Media Library WP_DEBUG notice [closed]
- Add body class based on existance of post thumbnail. Code works but receiving PHP Notice
- Delete all thumbnails for a post
- How to display thumbnail + tags + title of a child page?
- Archive Thumbnail Gallery
- How to delete posts that does not have a thumbnail?
- Hide upload image fields for the different media upload popups
- WordPress Uploader Editor shows broken image
- How do i show wordpress attachments from current post?
- How to get full absolute url for post attachment?
- Can’t get image size set with set_post_thumbnail_size() function
- How to check the array of featured images IDs
- Show LightBox when clicking on featured image [closed]
- WP dynamic featured image – Can’t get second featured image url
- Get ID of featured image using “get_post_thumbnail_id(the_ID())” – without printing to screen?
- what is the difference between timthumb and post thumbnail?
- Create thumbnail size only for a few images?
- How to find post with broken image link and delete that post
- Else condition not working while using has_post_thumbnail
- Only Display Thumbnail if Larger Than
- WP Query to set post thumbnail for existing old posts
- get_post_thumbnail_id() Doesn’t return value [closed]
- For homepage images (for small business website), is it better to use custom fields or post_thumbnail?
- Why is the post title and content automatically being displayed in the post thumbnail (Featured image)?
- the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true
- How to deal with wordpress images?
- Disable post thumbnails in Twenty Thirteen child theme
- Post thumbnail throwing size limit parameters in
- Displaying Post Featured Images on All Pages
- Image Alignment on Featured Images
- Trying to show link “Use as featured image” from Attachment window from t31os script
- Use Featured Image of Post as Header Image
- Recent posts on homepage: different thumbnail based on logged in status and post category
- How to display featured image description and title?
- Images uploaded on frontend display correctly but not in media editor.
- get_post_thumbnail does not display thumbnail
- Make image full width
- Facebook Does Not Grab Correct og:Image
- WordPress 4.4 responsive sometimes doesn’t work
- get_the_post_thumbnail($post->ID, ‘thumbnail’); not working. How can I solve this?
- Is it possible to add the_post_thumbnail to style.css?
- Getting featured image of particular size.
- How to add icon over specific thumb
- Different thumbnails for index and article page
- Smaller thumbnail in the_content
- Get post featured image id with $wpdb
- Attachment Image using wrong src?
- Unable to set Custom “Link URL” for Featured Image, and More?
- First Image not loading on Mobile Version of Website
- Thumbnails not being generated for PDF files
- Make 1st Slide of PowerPoint file to be the Post thumbnail preview image
- Is it possible to set Featured Image using HTML?
- Set featured image from auto generated video thumbnail url php
- Use Post Title as alt text for Featured Image
- How to cropped thumbnail image without distorting it?
- WordPress default srcset with hard crop
- wp_get_attachment_metadata()[‘image_meta’] fetch WP metadata or EXIF?
- White Blank screen and issue to get thumbnail in
- Set Featured Image Based on Custom Field
- Post thumbnail on specific template
- Using lower resolution/size images for thumbnails on posts index
- How to have featured image show in standard RSS Widget
- Link from Thumbnail to Post not working
- Featured Image metabox (postimagediv) doesn’t appears when it should
- Thumbnails not showing in blog
- Featured Image inserted through custom query, does not show up
- How to import linked images and make them featured -> automagically
- Change role’s settings influence post-thumbnail
- Wrap Featured Image in a Link
- Thumbnail images
- Featured Image Thumbnail Sizing
- WordPress uploads directory. Featured Images storage
- Featured Image Isn’t showing with cropped, How to show it?
- How to modify Media Library images DPI [ image quality down to make small in size ] [closed]
- Featured image as background in a div using headway
- php code for image fetching
- Delete old thumbnail when updating new
- Hot to change resized image link on posts