이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Feed Post Thumbnail

설명

With this plugin, an MRSS namespace is added to the site’s RSS feed to include each post’s thumbnail.

WP Feed Post Thumbnail is very lightweight and only adds two small options under Settings -> Reading.

Contribute

If you would like to contribute to this plugin, report an issue or anything like that, please note that we develop this plugin on GitHub.

Developed by required

스크린샷

  • Reading Settings

설치

Manual Installation

  1. Upload the entire /wp-feed-post-thumbnail directory to the /wp-content/plugins/ directory.
  2. Activate WP Feed Post Thumbnail through the ‘Plugins’ menu in WordPress.
  3. Enjoy more awesome RSS feeds

FAQ

Does the RSS feed still validate with this plugin enabled?

Yep, we add the proper XML namespaces for that. Everything just works as expected!

Any way to force the plugin to always add a certain thumbnail size?

Yes, the plugin has two filters available for this:

// Filters the size on media:content tag. Defaults to 'full'.
add_filter( 'wp_feed_post_thumbnail_image_size_full', function( $size ) {
    return 'large'; // Return any registered image size.
}, 10, 1 );

// Filters the size on the media:thumbnail tag. Defaults to 'thumbnail'.
add_filter( 'wp_feed_post_thumbnail_image_size_thumbnail', function( $size ) {
    return 'medium'; // Return any registered image size.
}, 10, 1 );

Can I change which images are shown?

Yes, the plugin has two filters available for this:

// Filters the featured image attachment post object.
add_filter( 'wp_feed_post_thumbnail_image', function( $thumbnail ) {
    return ''; // Return an empty string or another attachment post object.
}, 10, 1 );

// Filters the array of attachment post objects. Defaults to featured image post object if exists.
add_filter( 'wp_feed_post_thumbnail_images', function( $images ) {
    $attachment_id = '123';
    $images[] =  get_post( $attachment_id ); // Additional attachment post object.
    return images;
}, 10, 1 );

Can I change the title, description or author shown with the image?

Yes, there is a filter for each of these things:

// Filters the title on the media:title tag. Defaults to attachment title.
add_filter( 'wp_feed_post_thumbnail_title', function( $title ) {
    return 'Override title'; // Return any plain text.
}, 10, 1 );

// Filters the text on the media:description tag. Defaults to attachment description.
add_filter( 'wp_feed_post_thumbnail_description', function( $description ) {
    return 'Same description for all images'; // Return any plain string.
}, 10, 1 );

// Filters the name of the author on the media:copyright tag. Defaults to attachment author.
add_filter( 'wp_feed_post_thumbnail_author', function( $author_name ) {
    return 'Matt'; // Return any plain string.
}, 10, 1 );

후기

2016년 10월 27일 5 replies
Tried refreshing permalinks, saving settings on the General settings page you've added the two checkboxes to, nothing makes a difference. No post thumbnail in the feeds... Update! And then it started working! I'm guessing this may have had something to do with either my hosting's caching or possibly even just my own browser cache. Works like a dream, thank you!
모든 1 평가 읽기

기여자 & 개발자

“Feed Post Thumbnail”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Feed Post Thumbnail”(이)가 4(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Feed Post Thumbnail”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

3.0.0 -2023-03-27

  • Enhancement: Add setting to disable adding Media RSS namespace.
  • Fixed: Prevent errors when unchecking all settings.
  • Changed: Requires at least PHP 7.4 and WordPress 6.0.

2.1.2 – 2019-03-11

  • Enhancement: Minor code improvements.
  • Enhancement: New filter wp_feed_post_thumbnail_images to list multiple images
  • Changed: minimum PHP version 5.4 & minimum WP version 4.7

For previous updates see Changelog.md.