Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Multiple Post Thumbnails

Apraksts

Adds multiple post thumbnails to a post type. If you’ve ever wanted more than one Featured Image on a post, this plugin is for you.

Ekrānuzņēmumi

  • Admin meta box showing a new thumbnail named ‘Secondary Image’.
  • Media modal showing images attached to the post and a ‘Secondary Image’ selected.
  • Admin meta box with the ‘Secondary Image’ selected.

Uzstādīšana

Please refer to full documentation at https://github.com/voceconnect/multi-post-thumbnails/wiki

BUJ

If you have any issues with this plugin, please log them at the Github repo for this plugin.
This is done to centralize our issues and make sure nothing goes unnoticed.

The URL to log an issue is https://github.com/voceconnect/multi-post-thumbnails/issues

See Frequently Asked Questions at https://github.com/voceconnect/multi-post-thumbnails/wiki/Frequently-Asked-Questions

Atsauksmes

19 janvāris, 2017
I updated the plugin from 1.3 version to 1.6.6. but it didn’t work anymore. When I selected an image as an additional post thumbnail, the pop-up window closed but the selected image didn’t appear in page’s thumbnail preview window. And after saving the changes to page, the thumbnail image didn’t appear in the actual page either. For now, I rolled back to version 1.3 and it works as it should. But I would like to update to version 1.6.6. since the pop-up window for selecting additional post thumbnails is much easier to use and more stylish with 1.6.6. version when compared to 1.3. version. I also tried the fixed found from this topic (https://wordpress.org/support/topic/bugfix-bug-with-multiple-post-types-wp-4-5/) but that didn’t work either.
3 septembris, 2016 1 atbilde
Even though this plugin hasn’t been updated in a long time, it still works great! So I guess there’s just no reason for the developer to have it updated. 😉 For me this plugin is one of the easiest ways to selectively add a header image. I want it on some pages, but not on others. Using the standard Featured Image function will set it foor all or none, so that’s not flexible enough. One suggestion for an update though: Now you still need to add the following snippet to your theme’s function.php. if (class_exists('MultiPostThumbnails')) { new MultiPostThumbnails( array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => 'post' 'post_type' => 'page' ) ); } It would be great if the plugin did this automatically. That will also keep the plugin active if you switch themes. P.S. To add the meta box to other post types, just add it to the snippet. ‘post_type’ => ‘event’ will add it for Events Manager, for example. 😉
3 septembris, 2016 1 atbilde
I installed this plugin o a custom theme where I was using the first featured image as a background image and after installing this, surprise! Not working 🙁 Tried te disable/delete it, and surprise again! Still not working. So this plugin messed up my database. Thanks, developers!
Lasīt 42 atsauksmes

Autori un izstrādātāji

“Multiple Post Thumbnails” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

“Multiple Post Thumbnails” ir tulkots lokalizācijās 6. Paldies tulkotājiem par ieguldījumu.

Tulkot “Multiple Post Thumbnails&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

After version 1.3, releases were tracked in github: https://github.com/voceconnect/multi-post-thumbnails/releases

Historical releases are below:

1.3

  • Don’t show set as links in media screens when not in context (props prettyboymp). Add voceplatforms as an author. Updated FAQ.

1.2

  • Only enqueue admin scripts on needed pages (props johnjamesjacoby) and make sure thickbox is loaded (props prettyboymp). Add media-upload script to dependencies for post types that don’t already require it (props kevinlangleyjr).

1.1

  • Update FAQ. Clean up readme. Don’t yell null. Don’t output link to original if there is no image.

1.0

  • Use get_the_ID() in get_the_post_thumbnail. Props helgatheviking.

0.9

  • Increment version only to attempt to get plugin versions back in sync.

0.8

  • Revert init action changes from 0.7. Fixes admin metaboxes not showing when the MultiPostThumbnails class is instantiated in an action instead of functions.php

0.7

  • Add actions/filters on init action. Should fix admin metaboxes not showing or showing out of order. props arizzitano.

0.6

  • Update get_the_post_thumbnail return filter to use format {$post_type}_{$thumb_id}_thumbnail_html which allows filtering by post type and thumbnail id which was the intent. Props gordonbrander.
  • Update plugin URL to point to Plugin Directory

0.5

  • Update readme to check for MultiPostThumbnails class before calling.

0.4

  • Added: optional argument $link_to_original to *_the_post_thumbnails template tags. Thanks to gfors for the suggestion.
  • Fixed: PHP warning in media manager due to non-existent object

0.3

  • Fixed: when displaying the insert link in the media library, check the post_type so it only shows for the registered type.

0.2

  • Update docs and screenshots. Update tested through to 3.0 release.

0.1

  • Initial release.