Beschreibung
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.
Mitwirken
Wenn du dich an der Weiterentwicklung beteiligen willst, einen Fehler findest oder nicht klar kommst, melde dich auf GitHub.
Entwickelt von required
Installation
Manuelle Installation
- Lade das gesamte Verzeichnis
/wp-feed-post-thumbnail
in das/wp-content/plugins/
Verzeichnis. - Aktiviere WP Feed Post Thumbnail direkt in WordPress im „Plugins“ Menü.
- Erfreue dich an einem verbesserten RSS Feed
FAQ
-
Ist der RSS Feed immer noch valide, wenn ich dieses Plugin aktiviere?
-
Ja, wir fügen den passenden XML Namespace hinzu. Alles funktioniert genau so wie du es erwartest!
-
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 );
-
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 );
Rezensionen
Mitwirkende & Entwickler
„Feed Post Thumbnail“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
Mitwirkende„Feed Post Thumbnail“ wurde in 4 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.
Übersetze „Feed Post Thumbnail“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
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
2.1.1 – 2018-08-06
- Fixed: Improved compatibility with Jetpack.