Version Description
Download this release
Release Info
Developer | chrisscott |
Plugin | Multiple Post Thumbnails |
Version | 0.5 |
Comparing to | |
See all releases |
Code changes from version 0.4 to 0.5
- multi-post-thumbnails.php +1 -1
- readme.txt +11 -5
multi-post-thumbnails.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Multiple Post Thumbnails
|
4 |
Plugin URI: http://vocecommunications.com/
|
5 |
Description: Adds the ability to add multiple post thumbnails to a post type.
|
6 |
-
Version: 0.
|
7 |
Author: Chris Scott
|
8 |
Author URI: http://vocecommuncations.com/
|
9 |
*/
|
3 |
Plugin Name: Multiple Post Thumbnails
|
4 |
Plugin URI: http://vocecommunications.com/
|
5 |
Description: Adds the ability to add multiple post thumbnails to a post type.
|
6 |
+
Version: 0.5
|
7 |
Author: Chris Scott
|
8 |
Author URI: http://vocecommuncations.com/
|
9 |
*/
|
readme.txt
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
Contributors: chrisscott
|
3 |
Tags: thumbnails, image
|
4 |
Requires at least: 2.9.2
|
5 |
-
Tested up to: 3.
|
6 |
-
Stable tag: 0.
|
7 |
|
8 |
-
Adds
|
9 |
|
10 |
== Installation ==
|
11 |
|
@@ -13,12 +13,14 @@ Adds the ability to add multiple post thumbnails to a post type. If you've ever
|
|
13 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
14 |
3. Register a new thumbnail for the post type you want it active for. If `post_type` is not set it defaults to `post`.
|
15 |
|
16 |
-
|
|
|
17 |
'label' => 'Secondary Image',
|
18 |
'id' => 'secondary-image',
|
19 |
-
'post_type' => '
|
20 |
)
|
21 |
);
|
|
|
22 |
4. Display the thumbnail in your theme:
|
23 |
|
24 |
<?php if (class_exists('MultiPostThumbnails')
|
@@ -27,6 +29,10 @@ Adds the ability to add multiple post thumbnails to a post type. If you've ever
|
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
|
|
|
|
|
|
|
|
30 |
= How do I register the same thumbnail for multiple post types? =
|
31 |
|
32 |
You can loop through an array of the post types:
|
2 |
Contributors: chrisscott
|
3 |
Tags: thumbnails, image
|
4 |
Requires at least: 2.9.2
|
5 |
+
Tested up to: 3.1
|
6 |
+
Stable tag: 0.5
|
7 |
|
8 |
+
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.
|
9 |
|
10 |
== Installation ==
|
11 |
|
13 |
2. Activate the plugin through the 'Plugins' menu in WordPress
|
14 |
3. Register a new thumbnail for the post type you want it active for. If `post_type` is not set it defaults to `post`.
|
15 |
|
16 |
+
if (class_exists('MultiPostThumbnails')) {
|
17 |
+
new MultiPostThumbnails(array(
|
18 |
'label' => 'Secondary Image',
|
19 |
'id' => 'secondary-image',
|
20 |
+
'post_type' => 'post'
|
21 |
)
|
22 |
);
|
23 |
+
}
|
24 |
4. Display the thumbnail in your theme:
|
25 |
|
26 |
<?php if (class_exists('MultiPostThumbnails')
|
29 |
|
30 |
== Frequently Asked Questions ==
|
31 |
|
32 |
+
= I'm trying to upgrade to a new verions of WordPress and get an error about `MultiPostThumbnails` =
|
33 |
+
|
34 |
+
This is caused by using the example in previous readmes that didn't do a check for the `MultiPostThumbnails` class existing first. This has been corrected in the Installation section.
|
35 |
+
|
36 |
= How do I register the same thumbnail for multiple post types? =
|
37 |
|
38 |
You can loop through an array of the post types:
|