Version Description
- Update docs and screenshots. Update tested through to 3.0 release.
Download this release
Release Info
Developer | chrisscott |
Plugin | Multiple Post Thumbnails |
Version | 0.2 |
Comparing to | |
See all releases |
Code changes from version 0.1 to 0.2
- multi-post-thumbnails.php +2 -2
- readme.txt +18 -9
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
multi-post-thumbnails.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Plugin Name:
|
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 |
*/
|
1 |
<?php
|
2 |
/*
|
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.2
|
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.0
|
6 |
-
Stable tag: 0.
|
7 |
|
8 |
-
Adds the ability to add multiple post thumbnails to a post type.
|
9 |
|
10 |
== Installation ==
|
11 |
|
@@ -21,9 +21,9 @@ Adds the ability to add multiple post thumbnails to a post type.
|
|
21 |
);
|
22 |
4. Display the thumbnail in your theme:
|
23 |
|
24 |
-
<?php if (class_exists('MultiPostThumbnails')
|
25 |
-
|
26 |
-
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
@@ -45,17 +45,26 @@ You can loop through an array of the post types:
|
|
45 |
|
46 |
= How do I use a custom thumbnail size in my theme? =
|
47 |
|
48 |
-
After you have registered a new post thumbnail, register a new image size for it. e.g if your post thumbnail `id` is `secondary-image` and it is for a `post`, it probably makes sense to use something like:
|
49 |
|
50 |
-
|
|
|
|
|
|
|
|
|
51 |
|
52 |
You can register multiple image sizes for a given thumbnail if desired.
|
53 |
|
54 |
== Screenshots ==
|
55 |
|
56 |
-
1. Admin meta box showing a new thumbnail named Secondary Image.
|
|
|
|
|
57 |
|
58 |
== Changelog ==
|
59 |
|
|
|
|
|
|
|
60 |
= 0.1 =
|
61 |
* Initial release.
|
2 |
Contributors: chrisscott
|
3 |
Tags: thumbnails, image
|
4 |
Requires at least: 2.9.2
|
5 |
+
Tested up to: 3.0
|
6 |
+
Stable tag: 0.2
|
7 |
|
8 |
+
Adds the ability to add 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 |
|
21 |
);
|
22 |
4. Display the thumbnail in your theme:
|
23 |
|
24 |
+
<?php if (class_exists('MultiPostThumbnails')
|
25 |
+
&& MultiPostThumbnails::has_post_thumbnail('post', 'secondary-image')) :
|
26 |
+
MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image'); endif; ?>
|
27 |
|
28 |
== Frequently Asked Questions ==
|
29 |
|
45 |
|
46 |
= How do I use a custom thumbnail size in my theme? =
|
47 |
|
48 |
+
After you have registered a new post thumbnail, register a new image size for it. e.g if your post thumbnail `id` is `secondary-image` and it is for a `post`, it probably makes sense to use something like:
|
49 |
|
50 |
+
`add_image_size('post-secondary-image-thumbnail', 250, 150);`
|
51 |
+
|
52 |
+
This will register a new image size of 250x150 px. Then, when you display the thumbnail in your theme, update the call to `MultiPostThumbnails::the_post_thumbnail()` to pass in the image size:
|
53 |
+
|
54 |
+
`MultiPostThumbnails::the_post_thumbnail('post', 'secondary-image', NULL, 'post-secondary-image-thumbnail');`
|
55 |
|
56 |
You can register multiple image sizes for a given thumbnail if desired.
|
57 |
|
58 |
== Screenshots ==
|
59 |
|
60 |
+
1. Admin meta box showing a new thumbnail named 'Secondary Image'.
|
61 |
+
2. Media screen showing the link to use the image as the 'Secondary Image'.
|
62 |
+
3. Admin meta box with the 'Secondary Image' selected.
|
63 |
|
64 |
== Changelog ==
|
65 |
|
66 |
+
= 0.2 =
|
67 |
+
* Update docs and screenshots. Update tested through to 3.0 release.
|
68 |
+
|
69 |
= 0.1 =
|
70 |
* Initial release.
|
screenshot-2.png
ADDED
Binary file
|
screenshot-3.png
ADDED
Binary file
|